From 4cac9dc12f42a3971c82171b090aa139f70becde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 5 Sep 2021 22:46:54 -0700 Subject: [PATCH] somehow disabling activation at night was broken now it's not --- MWSE/mods/celediel/NPCsGoHome/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index 6c27944..7ba202f 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -80,7 +80,7 @@ local function applyChanges(cell) -- don't do anything to public houses if checks.isPublicHouse(cell) then return end - -- Deal with NPCs and mounts in cell + -- Deal with NPCs and mounts/pets in cell processors.processNPCs(cell) processors.processPets(cell) processors.processSiltStriders(cell) @@ -134,7 +134,7 @@ end -- {{{ event functions local eventFunctions = {} -eventFunctions.onActivated = function(e) +eventFunctions.onActivate = function(e) if e.activator ~= tes3.player or e.target.object.objectType ~= tes3.objectType.npc or not config.disableInteraction then return end @@ -142,9 +142,9 @@ eventFunctions.onActivated = function(e) local npc = e.target if tes3.player.data.NPCsGoHome.intruding and not checks.isIgnoredNPC(npc) then - if npc.disposition and npc.disposition <= config.minimumTrespassDisposition then - log(common.logLevels.medium, "[MAIN] Disabling dialogue with %s because trespass and disposition:%s", - npc.object.name, npc.disposition) + if npc.object.disposition and npc.object.disposition <= config.minimumTrespassDisposition then + log(common.logLevels.medium, "[MAIN] Disabling dialogue with %s because trespass and disposition: %s", + npc.object.name, npc.object.disposition) tes3.messageBox(string.format("%s: Get out before I call the guards!", npc.object.name)) return false end