mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
ShipThrusterVariableSyncer: fix nre
This commit is contained in:
parent
9a8d357b6d
commit
8d41e770b5
@ -47,6 +47,11 @@ public class ShipThrusterVariableSyncer : NetworkBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void GetFromShip() => AccelerationSyncer.Value = _thrusterModel.GetLocalAcceleration();
|
||||
private void GetFromShip()
|
||||
{
|
||||
if (_thrusterModel)
|
||||
{
|
||||
AccelerationSyncer.Value = _thrusterModel.GetLocalAcceleration();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user