mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 13:23:05 +00:00
only serialize when player exists
This commit is contained in:
parent
8ed62703d3
commit
58b671044c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user