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_random/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mesecons_random/init.lua') diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index f2e459a..670bea4 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -8,7 +8,7 @@ minetest.register_node("mesecons_random:removestone", { sounds = default.node_sound_stone_defaults(), mesecons = {effector = { action_on = function (pos, node) - minetest.env:remove_node(pos) + minetest.remove_node(pos) mesecon:update_autoconnect(pos) end }} @@ -68,8 +68,8 @@ minetest.register_node("mesecons_random:ghoststone_active", { on_construct = function(pos) --remove shadow pos2 = {x = pos.x, y = pos.y + 1, z = pos.z} - if ( minetest.env:get_node(pos2).name == "air" ) then - minetest.env:dig_node(pos2) + if ( minetest.get_node(pos2).name == "air" ) then + minetest.dig_node(pos2) end end }) -- cgit v1.2.3