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_button/init.lua | |
parent | b4654cedb77b435857649e01545bb9e507ff6dae (diff) |
Update code to standards of Minetest 0.4.8.
Diffstat (limited to 'mesecons_button/init.lua')
-rw-r--r-- | mesecons_button/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index beca63e..f4a9198 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -3,7 +3,7 @@ -- and then turns off again mesecon.button_turnoff = function (pos) - local node = minetest.env:get_node(pos) + local node = minetest.get_node(pos) if node.name=="mesecons_button:button_on" then --has not been dug minetest.swap_node(pos, {name = "mesecons_button:button_off", param2=node.param2}) minetest.sound_play("mesecons_button_pop", {pos=pos}) |