check model ship is not null

This commit is contained in:
JohnCorby 2022-11-19 14:09:09 -08:00
parent 1fc364d1ef
commit be3e235b17

View File

@ -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);
}
}
}