diff --git a/Gamemode Mods/StarCore SUGMA Gamemodes/Data/Scripts/SUGMA/GameState/BounceZone.cs b/Gamemode Mods/StarCore SUGMA Gamemodes/Data/Scripts/SUGMA/GameState/BounceZone.cs index 5b787af9f..ab354299d 100644 --- a/Gamemode Mods/StarCore SUGMA Gamemodes/Data/Scripts/SUGMA/GameState/BounceZone.cs +++ b/Gamemode Mods/StarCore SUGMA Gamemodes/Data/Scripts/SUGMA/GameState/BounceZone.cs @@ -20,7 +20,6 @@ internal class BounceZone : ComponentBase private int _ticks; private int _fastStart; - private readonly HashSet _skipEntityTypes = new HashSet { /* Add pre-ignored Types Here */ }; private readonly List _managedEntities = new List(1000); private readonly BoxDrawing _sphereDraw; @@ -81,17 +80,13 @@ private bool ShouldProcessEntity(MyEntity ent) Type entType = ent.GetType(); // Fast check against cache - if (_skipEntityTypes.Contains(entType) || ent.MarkedForClose || ent.IsPreview || ent.Physics == null || ent.Physics.IsPhantom || !ent.InScene) - { + if (ent.MarkedForClose || ent.IsPreview || ent.Physics == null || ent.Physics.IsPhantom || !ent.InScene) return false; - } var grid = ent as MyCubeGrid; var player = ent as IMyCharacter; if (grid == null && player == null) { - // Cache this type for future fast checks - _skipEntityTypes.Add(entType); return false; }