Fix directional window blocking (#7270)

This commit is contained in:
Leon Friedrich
2022-04-02 16:11:16 +13:00
committed by GitHub
parent 8eee60da3a
commit 2884de06b6
3 changed files with 38 additions and 58 deletions

View File

@@ -3,6 +3,7 @@ using Content.Shared.Construction.Prototypes;
using Content.Shared.Examine;
using Content.Shared.Input;
using Content.Shared.Interaction;
using Content.Shared.Wall;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Player;
@@ -182,6 +183,9 @@ namespace Content.Client.Construction
sprite.LayerSetSprite(0, prototype.Icon);
sprite.LayerSetShader(0, "unshaded");
sprite.LayerSetVisible(0, true);
if (prototype.CanBuildInImpassable)
EnsureComp<WallMountComponent>(ghost).Arc = new(Math.Tau);
}
/// <summary>