mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 00:39:53 +00:00
check model ship is not null
This commit is contained in:
parent
1fc364d1ef
commit
be3e235b17
@ -74,6 +74,9 @@ internal class UseFlightConsoleMessage : QSBMessage<bool>
|
||||
// Client messes up its position when they start flying it
|
||||
// We can just recall it immediately so its in the right place.
|
||||
var console = QSBWorldSync.GetUnityObject<RemoteFlightConsole>();
|
||||
console.RespawnModelShip(false);
|
||||
if (console._modelShipBody) // for when model ship is destroyed
|
||||
{
|
||||
console.RespawnModelShip(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user