Fix sensors blocking doors (#32591)

This commit is contained in:
metalgearsloth
2024-10-02 15:00:48 +10:00
committed by GitHub
parent b050e8332e
commit 4ca2a2bb8f

View File

@@ -552,8 +552,7 @@ public abstract partial class SharedDoorSystem : EntitySystem
var tileRef = _mapSystem.GetTileRef(xform.GridUid.Value, mapGridComp, xform.Coordinates);
_doorIntersecting.Clear();
_entityLookup.GetLocalEntitiesIntersecting(xform.GridUid.Value, tileRef.GridIndices, _doorIntersecting, gridComp: mapGridComp);
_entityLookup.GetLocalEntitiesIntersecting(xform.GridUid.Value, tileRef.GridIndices, _doorIntersecting, gridComp: mapGridComp, flags: (LookupFlags.All & ~LookupFlags.Sensors));
// TODO SLOTH fix electro's code.
// ReSharper disable once InconsistentNaming