Skip to content

Commit

Permalink
mesecon:rules_link nil return rule
Browse files Browse the repository at this point in the history
Fixes #108
  • Loading branch information
khonkhortisan committed Jun 11, 2013
1 parent c87bc60 commit 4f2604e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons/internal.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4f2604e

Please sign in to comment.