From 5f80623617c8bb1e605d3b1324146027509b5991 Mon Sep 17 00:00:00 2001
From: Sokomine <wegwerf@anarres.dyndns.org>
Date: Sun, 26 Jul 2015 00:02:41 +0200
Subject: removed minetest.env references and switched to swap_node

---
 nodes_anvil.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'nodes_anvil.lua')

diff --git a/nodes_anvil.lua b/nodes_anvil.lua
index 12a57ef..7ebdfed 100644
--- a/nodes_anvil.lua
+++ b/nodes_anvil.lua
@@ -62,7 +62,7 @@ minetest.register_node("cottages:anvil", {
 	},
 	on_construct = function(pos)
 
-               	local meta = minetest.env:get_meta(pos);
+		local meta = minetest.get_meta(pos);
                	meta:set_string("infotext", S("Anvil"));
                	local inv = meta:get_inventory();
                	inv:set_size("input",    1);
@@ -99,7 +99,7 @@ minetest.register_node("cottages:anvil", {
 
         can_dig = function(pos,player)
 
-                local meta  = minetest.get_meta(pos);
+		local meta  = minetest.get_meta(pos);
                 local inv   = meta:get_inventory();
 		local owner = meta:get_string('owner');
 
@@ -163,8 +163,8 @@ minetest.register_node("cottages:anvil", {
 		end
 		local name = puncher:get_player_name();
 
-               	local meta = minetest.env:get_meta(pos);
-               	local inv  = meta:get_inventory();
+		local meta = minetest.get_meta(pos);
+		local inv  = meta:get_inventory();
 
 		local input = inv:get_stack('input',1);
 
-- 
cgit v1.2.3