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.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())
|
||||
|
||||
Reference in New Issue
Block a user