diff --git a/BoneSync/Patching/PoolPatches.cs b/BoneSync/Patching/PoolPatches.cs index e28f35a..bb9fa88 100644 --- a/BoneSync/Patching/PoolPatches.cs +++ b/BoneSync/Patching/PoolPatches.cs @@ -191,6 +191,7 @@ namespace BoneSync.Patching return null; } + /* // DONT USE THIS PATCH, CRASHES GAME WITH NO ERROR [HarmonyPatch(nameof(Poolee.Despawn), new Type[] { typeof(Il2CppSystem.Nullable), typeof(Il2CppSystem.Nullable) }), HarmonyPrefix] private static bool DespawnPatchPre(Poolee __instance, ref Il2CppSystem.Nullable playVFX, ref Il2CppSystem.Nullable despawnColor) { @@ -203,7 +204,7 @@ namespace BoneSync.Patching return true; } - + */ } diff --git a/BoneSync/Sync/Components/SyncableBase.cs b/BoneSync/Sync/Components/SyncableBase.cs index 92dc1f8..8c44ddc 100644 --- a/BoneSync/Sync/Components/SyncableBase.cs +++ b/BoneSync/Sync/Components/SyncableBase.cs @@ -83,7 +83,7 @@ namespace BoneSync.Sync.Components public bool isStale => Time.realtimeSinceStartup - _lastSyncTime > 5f; public bool isOwner => _ownerId == BoneSync.lobby.GetLocalId(); - public bool isValid => this != null && gameObject != null; + public bool isValid => this != null; public void SetInHolster(bool val) {