diff options
author | Jeija <norrepli@gmail.com> | 2012-08-13 20:17:45 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-08-13 20:17:45 +0200 |
commit | 00ce2540c22340ed02135d74c6d70a35757e8deb (patch) | |
tree | 24f5ee80cf20e3eb2a9a303a52ead63ff685fecd /mesecons_lamp | |
parent | 24c50571f788a2d946ee905dd295124affc88d8b (diff) | |
download | mesecons-00ce2540c22340ed02135d74c6d70a35757e8deb.tar mesecons-00ce2540c22340ed02135d74c6d70a35757e8deb.tar.gz mesecons-00ce2540c22340ed02135d74c6d70a35757e8deb.tar.bz2 mesecons-00ce2540c22340ed02135d74c6d70a35757e8deb.tar.xz mesecons-00ce2540c22340ed02135d74c6d70a35757e8deb.zip |
New effector system, effectors have to be registered with mesecon:register_effector(onstate, offstate, rules, function get_rules) rules and function get_rules are optional. You don't have to specify both onstate and offstate (required for e.g. removestone)
Diffstat (limited to 'mesecons_lamp')
-rw-r--r-- | mesecons_lamp/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 4d7e92b..8c1b613 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -71,3 +71,5 @@ mesecon:register_on_signal_off(function(pos, node) nodeupdate(pos) end end) + +mesecon:register_effector("mesecons_lamp:lamp_on", "mesecons_lamp:lamp_off") |