Fix jumps

This commit is contained in:
Jens Pitkänen 2020-08-08 02:16:51 +03:00
parent ae45a57781
commit 5887757d5c

View File

@ -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;
}