From 8c0e177296e563a419294e0a42ce613036dce41c Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:34:26 +0000 Subject: [PATCH] fixed "serverstatemanager.instance is null" --- QSB/Utility/VariableSync/VariableReference.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QSB/Utility/VariableSync/VariableReference.cs b/QSB/Utility/VariableSync/VariableReference.cs index 783d1e62..cf2f6006 100644 --- a/QSB/Utility/VariableSync/VariableReference.cs +++ b/QSB/Utility/VariableSync/VariableReference.cs @@ -1,4 +1,5 @@ using QSB.Player; +using QSB.Player.TransformSync; using System; namespace QSB.Utility.VariableSync @@ -18,7 +19,7 @@ namespace QSB.Utility.VariableSync } else { - if (QSBPlayerManager.LocalPlayer.IsReady) + if (PlayerTransformSync.LocalInstance != null && QSBPlayerManager.LocalPlayer.IsReady) { DebugLog.ToConsole($"Warning - Getter is null!", OWML.Common.MessageType.Warning); } @@ -34,7 +35,7 @@ namespace QSB.Utility.VariableSync } else { - if (QSBPlayerManager.LocalPlayer.IsReady) + if (PlayerTransformSync.LocalInstance != null && QSBPlayerManager.LocalPlayer.IsReady) { DebugLog.ToConsole($"Warning - Setter is null!", OWML.Common.MessageType.Warning); }