Skip to content
Snippets Groups Projects
Commit d066b916 authored by Jeija's avatar Jeija
Browse files

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

parent 1083539e
No related branches found
No related tags found
No related merge requests found
......@@ -416,7 +416,7 @@ mesecon.queue:add_function("turnon", function (pos, rulename, recdepth)
end)
function mesecon:turnoff(pos, rulename, recdepth)
recdepth = recdepth or 0
recdepth = recdepth or 2
local node = minetest.get_node(pos)
if(node.name == "ignore") then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment