Prevent inflatables from being placed on walls/doors (#8624)

* Check if tile is blocked

* Move check to IsTileClear
This commit is contained in:
themias
2022-06-03 22:15:46 -04:00
committed by GitHub
parent 38f67722af
commit b4109669e0

View File

@@ -3,6 +3,7 @@ using Content.Server.DoAfter;
using Content.Server.Engineering.Components; using Content.Server.Engineering.Components;
using Content.Server.Stack; using Content.Server.Stack;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Content.Shared.Maps;
using Content.Shared.Stacks; using Content.Shared.Stacks;
using JetBrains.Annotations; using JetBrains.Annotations;
using Robust.Shared.Map; using Robust.Shared.Map;
@@ -36,7 +37,7 @@ namespace Content.Server.Engineering.EntitySystems
bool IsTileClear() bool IsTileClear()
{ {
return tileRef.Tile.IsEmpty == false; return tileRef.Tile.IsEmpty == false && !tileRef.IsBlockedTurf(true);
} }
if (!IsTileClear()) if (!IsTileClear())