summaryrefslogtreecommitdiff
path: root/mesecons/actionqueue.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons/actionqueue.lua')
-rw-r--r--mesecons/actionqueue.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesecons/actionqueue.lua b/mesecons/actionqueue.lua
index e300ea7..f3479ce 100644
--- a/mesecons/actionqueue.lua
+++ b/mesecons/actionqueue.lua
@@ -87,7 +87,11 @@ minetest.register_globalstep(function (dtime)
end)
function mesecon.queue:execute(action)
- mesecon.queue.funcs[action.func](action.pos, unpack(action.params))
+ -- ignore if action queue function name doesn't exist,
+ -- (e.g. in case the action queue savegame was written by an old mesecons version)
+ if mesecon.queue.funcs[action.func] then
+ mesecon.queue.funcs[action.func](action.pos, unpack(action.params))
+ end
end