diff options
author | Jeija <norrepli@gmail.com> | 2012-03-29 11:49:37 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-03-29 11:49:37 +0200 |
commit | e50639291c4089267a3da8e4ec4c55c051780592 (patch) | |
tree | ff1797b98e4ba33a90e85467f4ecee78bce7188b /mesecons_detector | |
parent | 2601d550c3523febf16ff615d01fdb90a7e8d4ca (diff) |
Make pressure plates and object detector use the new rules system
Diffstat (limited to 'mesecons_detector')
-rw-r--r-- | mesecons_detector/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index 28cedec..75e9b77 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -40,7 +40,7 @@ minetest.register_abm( end local objpos=obj:getpos() minetest.env:add_node(pos, {name="mesecons_detector:object_detector_on"}) - mesecon:receptor_on(pos, "pressureplate") + mesecon:receptor_on(pos, mesecon:get_rules("pressureplate")) end end end, @@ -68,7 +68,7 @@ minetest.register_abm( end if objectfound==0 then minetest.env:add_node(pos, {name="mesecons_detector:object_detector_off"}) - mesecon:receptor_off(pos, "pressureplate") + mesecon:receptor_off(pos, mesecon:get_rules("pressureplate")) end end, }) @@ -76,7 +76,7 @@ minetest.register_abm( minetest.register_on_dignode( function(pos, oldnode, digger) if oldnode.name == "mesecons_detector:object_detector_on" then - mesecon:receptor_off(pos, "pressureplate") + mesecon:receptor_off(pos, mesecon:get_rules("pressureplate")) end end ) |