From d68d20eb1ae4dfa0303a4b745d69b7bb04bbb05e Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sun, 7 Apr 2024 10:42:29 +0200 Subject: [PATCH] Disallow Lua activation of inventory objects --- files/data/scripts/omw/activationhandlers.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/data/scripts/omw/activationhandlers.lua b/files/data/scripts/omw/activationhandlers.lua index edadc30f79..a70696824f 100644 --- a/files/data/scripts/omw/activationhandlers.lua +++ b/files/data/scripts/omw/activationhandlers.lua @@ -33,6 +33,9 @@ local function onActivate(obj, actor) if world.isWorldPaused() then return end + if obj.parentContainer then + return + end local handlers = handlersPerObject[obj.id] if handlers then for i = #handlers, 1, -1 do