From b8c86a8580cff9aeee5f2289870ae5a475f07b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 15 Aug 2021 12:52:25 -0700 Subject: [PATCH] don't lock prison markers because it crashes thanks Greatness7 for the fix --- MWSE/mods/celediel/NPCsGoHome/functions/checks.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MWSE/mods/celediel/NPCsGoHome/functions/checks.lua b/MWSE/mods/celediel/NPCsGoHome/functions/checks.lua index fea5f27..72f1563 100644 --- a/MWSE/mods/celediel/NPCsGoHome/functions/checks.lua +++ b/MWSE/mods/celediel/NPCsGoHome/functions/checks.lua @@ -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)