forked from mtcontrib/markers
Merge pull request #4 from VanessaE/master
minetest.env:* --> minetest.*
This commit is contained in:
commit
ee0f856419
8
init.lua
8
init.lua
@ -84,7 +84,7 @@ markers.marker_placed = function( pos, placer, itemstack )
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local meta = minetest.env:get_meta( pos );
|
local meta = minetest.get_meta( pos );
|
||||||
local name = placer:get_player_name();
|
local name = placer:get_player_name();
|
||||||
|
|
||||||
meta:set_string( 'infotext', 'Marker at '..minetest.pos_to_string( pos )..
|
meta:set_string( 'infotext', 'Marker at '..minetest.pos_to_string( pos )..
|
||||||
@ -199,7 +199,7 @@ markers.marker_can_dig = function(pos,player)
|
|||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
|
|
||||||
local meta = minetest.env:get_meta( pos );
|
local meta = minetest.get_meta( pos );
|
||||||
local owner = meta:get_string( 'owner' );
|
local owner = meta:get_string( 'owner' );
|
||||||
local time = meta:get_string( 'time' );
|
local time = meta:get_string( 'time' );
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ end
|
|||||||
markers.get_marker_formspec = function(player, pos, error_msg)
|
markers.get_marker_formspec = function(player, pos, error_msg)
|
||||||
local formspec = "";
|
local formspec = "";
|
||||||
|
|
||||||
local meta = minetest.env:get_meta( pos );
|
local meta = minetest.get_meta( pos );
|
||||||
local owner = meta:get_string( 'owner' );
|
local owner = meta:get_string( 'owner' );
|
||||||
|
|
||||||
local name = player:get_player_name();
|
local name = player:get_player_name();
|
||||||
@ -430,7 +430,7 @@ markers.marker_on_receive_fields = function(pos, formname, fields, sender)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local meta = minetest.env:get_meta( pos );
|
local meta = minetest.get_meta( pos );
|
||||||
|
|
||||||
local name = sender:get_player_name();
|
local name = sender:get_player_name();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user