diff options
author | Sokomine <wegwerf@anarres.dyndns.org> | 2015-07-26 00:02:41 +0200 |
---|---|---|
committer | Sokomine <wegwerf@anarres.dyndns.org> | 2015-07-26 00:02:41 +0200 |
commit | 5f80623617c8bb1e605d3b1324146027509b5991 (patch) | |
tree | a6fbce4a68cbf8beaef38aaf4534569a954b12e8 /nodes_anvil.lua | |
parent | 42521c5f2b2943a2f656d2fdfdcb3be3c76fb8de (diff) |
removed minetest.env references and switched to swap_node
Diffstat (limited to 'nodes_anvil.lua')
-rw-r--r-- | nodes_anvil.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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); |