mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
copy paste #590 fix for model ship
This commit is contained in:
parent
9ab9158a50
commit
4c866345e5
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user