From 4f2604e01bce9bca71105ad6822fd9d98d6511f9 Mon Sep 17 00:00:00 2001 From: khonkhortisan Date: Mon, 10 Jun 2013 18:29:40 -0700 Subject: [PATCH] mesecon:rules_link nil return rule Fixes https://github.com/Jeija/minetest-mod-mesecons/issues/108 --- mesecons/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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