From 0e9213f52378d6c77267af6788571b4f22252ecf Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 28 Oct 2022 01:09:16 +1100 Subject: [PATCH] Fix lookup flags (#12235) --- Content.Client/Audio/AmbientSoundSystem.cs | 2 +- Content.Server/Storage/EntitySystems/EntityStorageSystem.cs | 2 +- Content.Server/Storage/EntitySystems/StorageSystem.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/Audio/AmbientSoundSystem.cs b/Content.Client/Audio/AmbientSoundSystem.cs index 3111e3177f..6de63bbf10 100644 --- a/Content.Client/Audio/AmbientSoundSystem.cs +++ b/Content.Client/Audio/AmbientSoundSystem.cs @@ -172,7 +172,7 @@ namespace Content.Client.Audio var ambientQuery = GetEntityQuery(); var xformQuery = GetEntityQuery(); - foreach (var entity in _lookup.GetEntitiesInRange(coordinates, _maxAmbientRange + RangeBuffer, LookupFlags.Anchored | LookupFlags.Approximate)) + foreach (var entity in _lookup.GetEntitiesInRange(coordinates, _maxAmbientRange + RangeBuffer)) { if (!ambientQuery.TryGetComponent(entity, out var ambientComp) || !ambientComp.Enabled || diff --git a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs index d78dfa4baa..b4ea126052 100644 --- a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs @@ -163,7 +163,7 @@ public sealed class EntityStorageSystem : EntitySystem var targetCoordinates = new EntityCoordinates(uid, component.EnteringOffset); - var entities = _lookup.GetEntitiesInRange(targetCoordinates, component.EnteringRange, LookupFlags.Approximate); + var entities = _lookup.GetEntitiesInRange(targetCoordinates, component.EnteringRange, LookupFlags.Approximate | LookupFlags.Dynamic | LookupFlags.Sundries); var ev = new StorageBeforeCloseEvent(uid, entities); RaiseLocalEvent(uid, ev, true); diff --git a/Content.Server/Storage/EntitySystems/StorageSystem.cs b/Content.Server/Storage/EntitySystems/StorageSystem.cs index 8fd6c02569..cb045c213b 100644 --- a/Content.Server/Storage/EntitySystems/StorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/StorageSystem.cs @@ -298,7 +298,7 @@ namespace Content.Server.Storage.EntitySystems var validStorables = new List(); var itemQuery = GetEntityQuery(); - foreach (var entity in _entityLookupSystem.GetEntitiesInRange(args.ClickLocation, storageComp.AreaInsertRadius, LookupFlags.None)) + foreach (var entity in _entityLookupSystem.GetEntitiesInRange(args.ClickLocation, storageComp.AreaInsertRadius, LookupFlags.Dynamic | LookupFlags.Sundries)) { if (entity == args.User || !itemQuery.HasComponent(entity)