only serialize when player exists

This commit is contained in:
Mister_Nebula 2021-07-15 14:11:49 +01:00
parent 8ed62703d3
commit 58b671044c

View File

@ -1,4 +1,5 @@
using QSB.SectorSync;
using QSB.Player;
using QSB.SectorSync;
using QSB.SectorSync.WorldObjects;
using QSB.Utility;
using QSB.WorldSync;
@ -101,6 +102,11 @@ namespace QSB.Syncs.TransformSync
_intermediaryTransform = new IntermediaryTransform(transform);
}
if (!QSBPlayerManager.PlayerExists(PlayerId))
{
return;
}
if (!Player.PlayerStates.IsReady)
{
return;