From 9b306b08677a009c7a3e08dcff401197ef149867 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 13 Jan 2023 22:13:11 +0000 Subject: [PATCH] fix #590 --- QSB/ShipSync/ShipThrusterVariableSyncer.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/QSB/ShipSync/ShipThrusterVariableSyncer.cs b/QSB/ShipSync/ShipThrusterVariableSyncer.cs index bb722be1..40ede599 100644 --- a/QSB/ShipSync/ShipThrusterVariableSyncer.cs +++ b/QSB/ShipSync/ShipThrusterVariableSyncer.cs @@ -21,6 +21,17 @@ public class ShipThrusterVariableSyncer : NetworkBehaviour public void Update() { + // bug : this doesn't account for autopilot + if (ShipManager.Instance.CurrentFlyer == uint.MaxValue) + { + if (_thrusterModel) + { + AccelerationSyncer.Value = Vector3.zero; + } + + return; + } + if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingShip) { GetFromShip();