Skip to content

Commit

Permalink
don't lock prison markers because it crashes
Browse files Browse the repository at this point in the history
thanks Greatness7 for the fix
  • Loading branch information
celediel committed Aug 15, 2021
1 parent 01dd0c2 commit b8c86a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MWSE/mods/celediel/NPCsGoHome/functions/checks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ end

-- doors that lead to ignored, exterior, canton, unoccupied, or public cells, and doors that aren't in cities
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
if not door.destination then
log(common.logLevels.large, "[CHECKS] Non-Cell-change door %s, ignoring", door.id)
Expand Down

0 comments on commit b8c86a8

Please sign in to comment.