diff --git a/QSB/ModelShip/ModelShipThrusterVariableSyncer.cs b/QSB/ModelShip/ModelShipThrusterVariableSyncer.cs index 30c82784..3e896587 100644 --- a/QSB/ModelShip/ModelShipThrusterVariableSyncer.cs +++ b/QSB/ModelShip/ModelShipThrusterVariableSyncer.cs @@ -1,9 +1,6 @@ -using Mirror; -using QSB.Player; -using QSB.Utility; +using QSB.Player; +using QSB.Player.TransformSync; using QSB.Utility.VariableSync; -using System.Collections.Generic; -using System.Linq; using UnityEngine; namespace QSB.ModelShip; @@ -26,7 +23,7 @@ public class ModelShipThrusterVariableSyncer : MonoBehaviour public void Update() { - if (QSBPlayerManager.LocalPlayer.FlyingModelShip) + if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingModelShip) { GetFromShip(); return; diff --git a/QSB/ShipSync/ShipThrusterVariableSyncer.cs b/QSB/ShipSync/ShipThrusterVariableSyncer.cs index c8e31673..bb722be1 100644 --- a/QSB/ShipSync/ShipThrusterVariableSyncer.cs +++ b/QSB/ShipSync/ShipThrusterVariableSyncer.cs @@ -1,7 +1,7 @@ using Mirror; using QSB.Player; +using QSB.Player.TransformSync; using QSB.Utility.VariableSync; -using QSB.WorldSync; using UnityEngine; namespace QSB.ShipSync; @@ -21,7 +21,7 @@ public class ShipThrusterVariableSyncer : NetworkBehaviour public void Update() { - if (QSBPlayerManager.LocalPlayer.FlyingShip) + if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingShip) { GetFromShip(); return;