mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
remove from cache on OWRigidbody.OnDestroy
This commit is contained in:
parent
321ca2a045
commit
65919be25f
@ -145,8 +145,11 @@ namespace QSB.Utility
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(nameof(OWRigidbody.OnDestroy))]
|
||||
private static void OnDestroy(OWRigidbody __instance) =>
|
||||
private static void OnDestroy(OWRigidbody __instance)
|
||||
{
|
||||
_cache.Remove(__instance._transform);
|
||||
_setParentQueue.Remove(__instance);
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(nameof(OWRigidbody.Suspend), typeof(Transform), typeof(OWRigidbody))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user