Prevent inflatables from being placed on walls/doors (#8624)
* Check if tile is blocked * Move check to IsTileClear
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user