mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-05 20:11:34 +00:00
Disallow Lua activation of inventory objects
This commit is contained in:
parent
239d8f49d8
commit
d68d20eb1a
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ local function onActivate(obj, actor)
|
||||||
if world.isWorldPaused() then
|
if world.isWorldPaused() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if obj.parentContainer then
|
||||||
|
return
|
||||||
|
end
|
||||||
local handlers = handlersPerObject[obj.id]
|
local handlers = handlersPerObject[obj.id]
|
||||||
if handlers then
|
if handlers then
|
||||||
for i = #handlers, 1, -1 do
|
for i = #handlers, 1, -1 do
|
||||||
|
|
Loading…
Reference in a new issue