From 16b4b79c51719849588c49d1d47d9bcbc05533e4 Mon Sep 17 00:00:00 2001 From: Uberi Date: Sat, 30 Nov 2013 22:13:00 -0500 Subject: Update code to standards of Minetest 0.4.8. --- mesecons_button/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_button') 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}) -- cgit v1.2.3