mesecon:rules_link nil return rule

Fixes https://github.com/Jeija/minetest-mod-mesecons/issues/108
This commit is contained in:
khonkhortisan 2013-06-10 18:29:40 -07:00
parent c87bc60635
commit 4f2604e01b

View File

@ -487,7 +487,7 @@ function mesecon:rules_link(output, input, dug_outputrules) --output/input are p
for _, inputrule in ipairs(inputrules) do for _, inputrule in ipairs(inputrules) do
-- Check if input accepts from output -- Check if input accepts from output
if mesecon:cmpPos(mesecon:addPosRule(input, inputrule), output) then if mesecon:cmpPos(mesecon:addPosRule(input, inputrule), output) then
return true, inputrule.name return true, inputrule
end end
end end
end end