@@ -16,7 +16,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
{
|
||||
var lowWall = false;
|
||||
|
||||
foreach (var entity in location.GetEntitiesInTile(true))
|
||||
foreach (var entity in location.GetEntitiesInTile(LookupFlags.Approximate | LookupFlags.IncludeAnchored))
|
||||
{
|
||||
if (entity.HasComponent<SharedCanBuildWindowOnTopComponent>())
|
||||
lowWall = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
{
|
||||
public bool Condition(IEntity user, EntityCoordinates location, Direction direction)
|
||||
{
|
||||
foreach (var entity in location.GetEntitiesInTile(true))
|
||||
foreach (var entity in location.GetEntitiesInTile(LookupFlags.Approximate | LookupFlags.IncludeAnchored))
|
||||
{
|
||||
if (entity.HasComponent<SharedWindowComponent>())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user