summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-11-30 12:33:23 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-11-30 12:33:23 -0500
commit1a817cef3a9dab742df6806eee340ac24ab015bb (patch)
tree04eed8086ec452899e98df000b9f4ce16158f1e0
parent2c9fe6cb869b1d7e753e734717b44b9efb4dce84 (diff)
minetest.env:* --> minetest.*
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index a21c913..b800484 100644
--- a/init.lua
+++ b/init.lua
@@ -84,7 +84,7 @@ markers.marker_placed = function( pos, placer, itemstack )
return;
end
- local meta = minetest.env:get_meta( pos );
+ local meta = minetest.get_meta( pos );
local name = placer:get_player_name();
meta:set_string( 'infotext', 'Marker at '..minetest.pos_to_string( pos )..
@@ -199,7 +199,7 @@ markers.marker_can_dig = function(pos,player)
return true;
end
- local meta = minetest.env:get_meta( pos );
+ local meta = minetest.get_meta( pos );
local owner = meta:get_string( 'owner' );
local time = meta:get_string( 'time' );
@@ -273,7 +273,7 @@ end
markers.get_marker_formspec = function(player, pos, error_msg)
local formspec = "";
- local meta = minetest.env:get_meta( pos );
+ local meta = minetest.get_meta( pos );
local owner = meta:get_string( 'owner' );
local name = player:get_player_name();
@@ -424,7 +424,7 @@ markers.marker_on_receive_fields = function(pos, formname, fields, sender)
end
- local meta = minetest.env:get_meta( pos );
+ local meta = minetest.get_meta( pos );
local name = sender:get_player_name();