forked from minetest-mods/mesecons
mesecon:rules_link nil return rule
Fixes https://github.com/Jeija/minetest-mod-mesecons/issues/108
This commit is contained in:
parent
c87bc60635
commit
4f2604e01b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user