mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-10 03:40:01 +00:00
dont just "return" from serialize transform
This commit is contained in:
parent
58b671044c
commit
874b52417a
@ -104,12 +104,13 @@ namespace QSB.Syncs.TransformSync
|
||||
|
||||
if (!QSBPlayerManager.PlayerExists(PlayerId))
|
||||
{
|
||||
return;
|
||||
DebugLog.ToConsole($"Warning - Tried to serialize {_logName} before the right player exists.", OWML.Common.MessageType.Warning);
|
||||
writer.Write(-1);
|
||||
}
|
||||
|
||||
if (!Player.PlayerStates.IsReady)
|
||||
else 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user