mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-27 02:40:18 +01:00
Fix infinite priority bug in mesecon:turnoff, thanks to Novatux
This commit is contained in:
parent
1083539e9b
commit
d066b91632
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user