diff options
Diffstat (limited to 'mesecons/legacy.lua')
-rw-r--r-- | mesecons/legacy.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesecons/legacy.lua b/mesecons/legacy.lua index 271221a..3f87b1b 100644 --- a/mesecons/legacy.lua +++ b/mesecons/legacy.lua @@ -18,13 +18,12 @@ end function mesecon:register_receptor(onstate, offstate, rules, get_rules) if get_rules == nil and rules == nil then - rules = mesecon:get_rules("default") + rules=mesecon:get_rules("default") end - table.insert(mesecon.receptors, {onstate = onstate, offstate = offstate, - rules = rules, + rules = input_rules, get_rules = get_rules}) end |