Only run gc when using v17.4

This commit is contained in:
Atony committed 2026-06-20 14:28:08 -05:00
1 parent e3b0eb68c0
commit 3a5a397846
14 files changed
+154 -35

No files matched your search

@@ -138,7 +138,7 @@ public class ModifierDisplayComponent(nint cppPtr) : MonoBehaviour(cppPtr)
internal void DestroyComponent(ModifierUiComponent component)
{
_modifiers.Remove(component.Modifier!);
component.gameObject.FakeDestroy();
component.gameObject.DeepDestroy();
RefreshModifiers();
}
@@ -208,7 +208,7 @@ public class ModifierDisplayComponent(nint cppPtr) : MonoBehaviour(cppPtr)
continue;
}
mod.Value.gameObject.FakeDestroy();
mod.Value.gameObject.DeepDestroy();
_modifiers.Remove(mod.Key);
}