Fix infinite priority bug in mesecon:turnoff, thanks to Novatux

This commit is contained in:
Jeija 2014-01-11 16:48:25 +01:00
parent 1083539e9b
commit d066b91632

View File

@ -416,7 +416,7 @@ mesecon.queue:add_function("turnon", function (pos, rulename, recdepth)
end) end)
function mesecon:turnoff(pos, rulename, recdepth) function mesecon:turnoff(pos, rulename, recdepth)
recdepth = recdepth or 0 recdepth = recdepth or 2
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
if(node.name == "ignore") then if(node.name == "ignore") then