From c277590fc2159a6a3599272e8320f600879a75ec Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 30 Jun 2013 23:55:07 -0400 Subject: Phased out all deprecated minetest.env:* uses in favor of minetest.* --- node_defs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node_defs.lua') diff --git a/node_defs.lua b/node_defs.lua index 651e0cf..281a71f 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -143,7 +143,7 @@ for i in ipairs(moretrees.treelist) do action = function(pos, node, active_object_count, active_object_count_wider) local fdir = node.param2 or 0 nfdir = dirs2[fdir+1] - minetest.env:add_node(pos, {name = "moretrees:"..treename.."_trunk", param2 = nfdir}) + minetest.add_node(pos, {name = "moretrees:"..treename.."_trunk", param2 = nfdir}) end, }) @@ -239,7 +239,7 @@ minetest.register_abm({ action = function(pos, node, active_object_count, active_object_count_wider) local fdir = node.param2 or 0 nfdir = dirs2[fdir+1] - minetest.env:add_node(pos, {name = "moretrees:rubber_tree_trunk_empty", param2 = nfdir}) + minetest.add_node(pos, {name = "moretrees:rubber_tree_trunk_empty", param2 = nfdir}) end, }) -- cgit v1.2.3