mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-15 07:17:46 -04:00
Merge branch 'usedontactivate' into 'master'
Disallow Lua activation of inventory objects See merge request OpenMW/openmw!4009
This commit is contained in:
commit
9db56c8bc4
@ -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…
x
Reference in New Issue
Block a user