summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-01-11 16:48:25 +0100
committerJeija <jeija@mesecons.net>2014-01-11 16:48:25 +0100
commitd066b91632ac34df15c731bd86671ef78f52d3df (patch)
tree361ebaac0d1506af241fba97d048d7468e7f3fab
parent1083539e9b82c729687f012e741614d1fc216757 (diff)
downloadmesecons-d066b91632ac34df15c731bd86671ef78f52d3df.tar
mesecons-d066b91632ac34df15c731bd86671ef78f52d3df.tar.gz
mesecons-d066b91632ac34df15c731bd86671ef78f52d3df.tar.bz2
mesecons-d066b91632ac34df15c731bd86671ef78f52d3df.tar.xz
mesecons-d066b91632ac34df15c731bd86671ef78f52d3df.zip
Fix infinite priority bug in mesecon:turnoff, thanks to Novatux
-rw-r--r--mesecons/internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons/internal.lua b/mesecons/internal.lua
index 8e58d73..0d998d3 100644
--- a/mesecons/internal.lua
+++ b/mesecons/internal.lua
@@ -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