Fix RemotePlayer npe

This commit is contained in:
Jens Pitkänen 2020-08-07 05:42:12 +03:00
parent 634ec2fe7c
commit 088d236fe0

View File

@ -26,7 +26,7 @@ namespace NeonTea.Quakeball.Player {
}
private void Update() {
if (Time.time - LastUpdateTime >= 1f / Player.UpdateFrequency) {
if (Time.time - LastUpdateTime >= 1f / Player.UpdateFrequency && QueuedPckt != null) {
ProcessPacket(ref QueuedPckt);
}
}