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