Should fix this bug: bit.ly/XEy94j

This commit is contained in:
Jeija 2012-12-18 15:59:23 +01:00
parent 13befe3bba
commit 313b9adcd5

View File

@ -46,7 +46,7 @@ function mesecon:receptor_get_rules(node)
if receptor.onstate == node.name or receptor.offstate == node.name then if receptor.onstate == node.name or receptor.offstate == node.name then
if receptor.get_rules ~= nil then if receptor.get_rules ~= nil then
return receptor.get_rules(node.param2) return receptor.get_rules(node.param2)
elseif mesecon.receptors[i].rules ~=nil then elseif receptor.rules ~=nil then
return receptor.rules return receptor.rules
else else
return mesecon:get_rules("default") return mesecon:get_rules("default")