fix the broken :D

This commit is contained in:
Aaro Varis
2025-03-23 20:19:39 +02:00
parent 3d879a605d
commit ff52da9542
2 changed files with 3 additions and 2 deletions

View File

@@ -191,6 +191,7 @@ namespace BoneSync.Patching
return null; return null;
} }
/* // DONT USE THIS PATCH, CRASHES GAME WITH NO ERROR
[HarmonyPatch(nameof(Poolee.Despawn), new Type[] { typeof(Il2CppSystem.Nullable<bool>), typeof(Il2CppSystem.Nullable<Color>) }), HarmonyPrefix] [HarmonyPatch(nameof(Poolee.Despawn), new Type[] { typeof(Il2CppSystem.Nullable<bool>), typeof(Il2CppSystem.Nullable<Color>) }), HarmonyPrefix]
private static bool DespawnPatchPre(Poolee __instance, ref Il2CppSystem.Nullable<bool> playVFX, ref Il2CppSystem.Nullable<Color> despawnColor) private static bool DespawnPatchPre(Poolee __instance, ref Il2CppSystem.Nullable<bool> playVFX, ref Il2CppSystem.Nullable<Color> despawnColor)
{ {
@@ -203,7 +204,7 @@ namespace BoneSync.Patching
return true; return true;
} }
*/
} }

View File

@@ -83,7 +83,7 @@ namespace BoneSync.Sync.Components
public bool isStale => Time.realtimeSinceStartup - _lastSyncTime > 5f; public bool isStale => Time.realtimeSinceStartup - _lastSyncTime > 5f;
public bool isOwner => _ownerId == BoneSync.lobby.GetLocalId(); public bool isOwner => _ownerId == BoneSync.lobby.GetLocalId();
public bool isValid => this != null && gameObject != null; public bool isValid => this != null;
public void SetInHolster(bool val) public void SetInHolster(bool val)
{ {