From 614f6f4da198ca2127c4e7c29c0f55fcac0f3be6 Mon Sep 17 00:00:00 2001
From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com>
Date: Sun, 30 Nov 2014 12:38:06 -0500
Subject: minetest.env:* --> minetest.*

---
 compat.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'compat.lua')

diff --git a/compat.lua b/compat.lua
index a1c1d45..21a5efc 100644
--- a/compat.lua
+++ b/compat.lua
@@ -116,12 +116,12 @@ minetest.override_item("default:chest_locked", {
 	groups = {choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, tubedevice_receiver = 1},
 	tube = {
 		insert_object = function(pos, node, stack, direction)
-			local meta = minetest.env:get_meta(pos)
+			local meta = minetest.get_meta(pos)
 			local inv = meta:get_inventory()
 			return inv:add_item("main", stack)
 		end,
 		can_insert = function(pos, node, stack, direction)
-			local meta = minetest.env:get_meta(pos)
+			local meta = minetest.get_meta(pos)
 			local inv = meta:get_inventory()
 			return inv:room_for_item("main", stack)
 		end,
-- 
cgit v1.2.3