diff options
author | khonkhortisan <khonkhortisan@gmail.com> | 2013-06-10 18:29:40 -0700 |
---|---|---|
committer | khonkhortisan <khonkhortisan@gmail.com> | 2013-06-10 18:29:40 -0700 |
commit | 4f2604e01bce9bca71105ad6822fd9d98d6511f9 (patch) | |
tree | 415245580d2d0ac85b5b1b30d8d93b95592895e5 | |
parent | c87bc606358f8727d69bd39b5cacb31c582bb1af (diff) |
mesecon:rules_link nil return rule
Fixes https://github.com/Jeija/minetest-mod-mesecons/issues/108
-rw-r--r-- | mesecons/internal.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons/internal.lua b/mesecons/internal.lua index 1d07aac..30991cd 100644 --- a/mesecons/internal.lua +++ b/mesecons/internal.lua @@ -487,7 +487,7 @@ function mesecon:rules_link(output, input, dug_outputrules) --output/input are p for _, inputrule in ipairs(inputrules) do -- Check if input accepts from output if mesecon:cmpPos(mesecon:addPosRule(input, inputrule), output) then - return true, inputrule.name + return true, inputrule end end end |