From dd98a22feb98f90ac619fa112df564a62446fe50 Mon Sep 17 00:00:00 2001 From: Aristeas <94058548+ari-steas@users.noreply.github.com> Date: Sat, 1 Mar 2025 16:25:48 -0600 Subject: [PATCH] Emergency bounce zone fix --- .../Data/Scripts/SUGMA/GameState/BounceZone.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }