1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00

Disallow Lua activation of inventory objects

This commit is contained in:
Evil Eye 2024-04-07 10:42:29 +02:00
parent 239d8f49d8
commit d68d20eb1a

View File

@ -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