failsafe on the failsafe for cargo dismounting (carrier needs to exist, if not a vehicle) (#1364)
Some checks failed
Publish Docs / docs (push) Has been cancelled
Publish Docker Image / docker (push) Has been cancelled
Test / test (push) Has been cancelled

This commit is contained in:
Fate-JH 2026-05-04 12:23:03 -04:00 committed by GitHub
parent fadd735b9f
commit fc6d3defde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,10 @@ trait CargoBehavior {
def startCargoDismounting(bailed: Boolean): Unit = {
if (!startCargoDismountingNoCleanup(bailed)) {
isDismounting = None
CargoObject.MountedIn = None
CargoObject.Zone.GUID(CargoObject.MountedIn).orElse {
isDismounting = None
CargoObject.MountedIn = None
}
}
}