From 313b9adcd5fcfd400af7ed730a2829db3fe21015 Mon Sep 17 00:00:00 2001 From: Jeija Date: Tue, 18 Dec 2012 15:59:23 +0100 Subject: [PATCH] Should fix this bug: bit.ly/XEy94j --- mesecons/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesecons/internal.lua b/mesecons/internal.lua index de05bec..a4beb4a 100644 --- a/mesecons/internal.lua +++ b/mesecons/internal.lua @@ -46,7 +46,7 @@ function mesecon:receptor_get_rules(node) if receptor.onstate == node.name or receptor.offstate == node.name then if receptor.get_rules ~= nil then return receptor.get_rules(node.param2) - elseif mesecon.receptors[i].rules ~=nil then + elseif receptor.rules ~=nil then return receptor.rules else return mesecon:get_rules("default")