diff options
Diffstat (limited to 'mesecons_detector')
-rw-r--r-- | mesecons_detector/init.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index 3ac0a4f..145b1b7 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -14,9 +14,6 @@ minetest.register_node("mesecons_detector:object_detector_on", { groups = {cracky=3,not_in_creative_inventory=1, mesecon = 2}, drop = 'mesecons_detector:object_detector_off', description="Player Detector", - after_dig_node = function(pos) - mesecon:receptor_off(pos, mesecon:get_rules("pressureplate")) - end }) minetest.register_craft({ @@ -76,5 +73,5 @@ minetest.register_abm( end, }) -mesecon:add_receptor_node("mesecons_detector:object_detector_on") -mesecon:add_receptor_node_off("mesecons_detector:object_detector_off") +mesecon:add_receptor_node("mesecons_detector:object_detector_on", mesecon:get_rules("pressureplate")) +mesecon:add_receptor_node_off("mesecons_detector:object_detector_off", mesecon:get_rules("pressureplate")) |