From 58b671044c6517b99a8dd2f6db8ee340c6fb6795 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Thu, 15 Jul 2021 14:11:49 +0100 Subject: [PATCH] only serialize when player exists --- QSB/Syncs/TransformSync/SectoredTransformSync.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/QSB/Syncs/TransformSync/SectoredTransformSync.cs b/QSB/Syncs/TransformSync/SectoredTransformSync.cs index 89ec8f58..2479037d 100644 --- a/QSB/Syncs/TransformSync/SectoredTransformSync.cs +++ b/QSB/Syncs/TransformSync/SectoredTransformSync.cs @@ -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;