mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-23 10:46:46 +00:00
Only run gc when using v17.4
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user