mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-10 21:40:19 +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))
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user