diff options
Diffstat (limited to 'mesecons_detector')
-rw-r--r-- | mesecons_detector/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index ece2bc8..2eaa1e0 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -88,7 +88,7 @@ minetest.register_abm( chance = 1, action = function(pos) if object_detector_scan(pos) then - mesecon:swap_node(pos, "mesecons_detector:object_detector_on") + minetest.swap_node(pos, {name = "mesecons_detector:object_detector_on"}) mesecon:receptor_on(pos) end end, @@ -100,7 +100,7 @@ minetest.register_abm( chance = 1, action = function(pos) if not object_detector_scan(pos) then - mesecon:swap_node(pos, "mesecons_detector:object_detector_off") + minetest.swap_node(pos, {name = "mesecons_detector:object_detector_off"}) mesecon:receptor_off(pos) end end, |