don't lock prison markers because it crashes

thanks Greatness7 for the fix
This commit is contained in:
Lilian Jónsdóttir 2021-08-15 12:52:25 -07:00
parent 01dd0c26eb
commit b8c86a8580

View file

@ -278,6 +278,9 @@ end
-- doors that lead to ignored, exterior, canton, unoccupied, or public cells, and doors that aren't in cities -- doors that lead to ignored, exterior, canton, unoccupied, or public cells, and doors that aren't in cities
this.isIgnoredDoor = function(door, homeCellId) this.isIgnoredDoor = function(door, homeCellId)
-- don't lock prison markers
if door.id == "PrisonMarker" then return true end
-- don't lock non-cell change doors -- don't lock non-cell change doors
if not door.destination then if not door.destination then
log(common.logLevels.large, "[CHECKS] Non-Cell-change door %s, ignoring", door.id) log(common.logLevels.large, "[CHECKS] Non-Cell-change door %s, ignoring", door.id)