From ff52da9542db62918b514dad90234f366421f22b Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Sun, 23 Mar 2025 20:19:39 +0200 Subject: [PATCH] fix the broken :D --- BoneSync/Patching/PoolPatches.cs | 3 ++- BoneSync/Sync/Components/SyncableBase.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {