Small adjustment for elookup api (#22447)

* Small adjustment for elookup api

* fix
This commit is contained in:
metalgearsloth
2024-01-04 15:13:19 +11:00
committed by GitHub
parent 3ee6b8d2bc
commit a3516e60e7
3 changed files with 9 additions and 2 deletions

View File

@@ -140,7 +140,10 @@ namespace Content.Server.Atmos.EntitySystems
tile.PressureSpecificTarget = curTile;
}
foreach (var entity in _lookup.GetEntitiesIntersecting(tile.GridIndex, tile.GridIndices, 0f))
_entSet.Clear();
_lookup.GetLocalEntitiesIntersecting(tile.GridIndex, tile.GridIndices, _entSet, 0f);
foreach (var entity in _entSet)
{
// Ideally containers would have their own EntityQuery internally or something given recursively it may need to slam GetComp<T> anyway.
// Also, don't care about static bodies (but also due to collisionwakestate can't query dynamic directly atm).