diff --git a/Assets/Scripts/Players/LocalPlayer.cs b/Assets/Scripts/Players/LocalPlayer.cs index 2404bde..b73fe64 100644 --- a/Assets/Scripts/Players/LocalPlayer.cs +++ b/Assets/Scripts/Players/LocalPlayer.cs @@ -93,8 +93,11 @@ namespace NeonTea.Quakeball.Players { Networking.Net.Singleton.Instance.UpdateLocalPlayer(); } - if (WantsToJump && Player.Jump()) { - Networking.Net.Singleton.Instance.LocalPlayerJump(); + if (WantsToJump) { + bool Jumped = Player.Jump(); + if (Jumped && Networking.Net.Singleton.Instance != null) { + Networking.Net.Singleton.Instance.LocalPlayerJump(); + } } WantsToJump = false; }