diff options
author | Uberi <azhang9@gmail.com> | 2013-11-30 22:13:00 -0500 |
---|---|---|
committer | Uberi <azhang9@gmail.com> | 2013-11-30 22:13:00 -0500 |
commit | 16b4b79c51719849588c49d1d47d9bcbc05533e4 (patch) | |
tree | 0554bf1fb3c1b293af4396cff9aac172e83bb727 /mesecons_blinkyplant | |
parent | b4654cedb77b435857649e01545bb9e507ff6dae (diff) |
Update code to standards of Minetest 0.4.8.
Diffstat (limited to 'mesecons_blinkyplant')
-rw-r--r-- | mesecons_blinkyplant/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index f86cfc8..44c2acf 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -81,8 +81,8 @@ minetest.register_abm( interval = BLINKY_PLANT_INTERVAL, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) - --minetest.env:remove_node(pos) - minetest.env:add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"}) + --minetest.remove_node(pos) + minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"}) nodeupdate(pos) mesecon:receptor_on(pos) end, @@ -93,8 +93,8 @@ minetest.register_abm({ interval = BLINKY_PLANT_INTERVAL, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) - --minetest.env:remove_node(pos) - minetest.env:add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"}) + --minetest.remove_node(pos) + minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"}) nodeupdate(pos) mesecon:receptor_off(pos) end, |