copy paste #590 fix for model ship

This commit is contained in:
JohnCorby 2023-04-26 16:08:16 -07:00
parent 9ab9158a50
commit 4c866345e5
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,17 @@ public class ModelShipThrusterVariableSyncer : MonoBehaviour
public void Update()
{
// fixes #590
if (ModelShipManager.Instance.CurrentFlyer == uint.MaxValue)
{
if (ThrusterModel)
{
AccelerationSyncer.Value = Vector3.zero;
}
return;
}
if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingModelShip)
{
GetFromShip();

View File

@ -22,6 +22,7 @@ public class ShipThrusterVariableSyncer : NetworkBehaviour
public void Update()
{
// bug : this doesn't account for autopilot
// fixes #590
if (ShipManager.Instance.CurrentFlyer == uint.MaxValue)
{
if (_thrusterModel)