dont just "return" from serialize transform

This commit is contained in:
Mister_Nebula 2021-07-16 10:27:49 +01:00
parent 58b671044c
commit 874b52417a

View File

@ -104,12 +104,13 @@ namespace QSB.Syncs.TransformSync
if (!QSBPlayerManager.PlayerExists(PlayerId)) if (!QSBPlayerManager.PlayerExists(PlayerId))
{ {
return; DebugLog.ToConsole($"Warning - Tried to serialize {_logName} before the right player exists.", OWML.Common.MessageType.Warning);
writer.Write(-1);
} }
else if (!Player.PlayerStates.IsReady)
if (!Player.PlayerStates.IsReady)
{ {
return; DebugLog.ToConsole($"Warning - Tried to serialize {_logName} before the player was ready.", OWML.Common.MessageType.Warning);
writer.Write(-1);
} }
if (ReferenceSector != null) if (ReferenceSector != null)