changed buy-references to protect

This commit is contained in:
Sokomine 2015-07-14 03:35:57 +02:00
parent f9ede8b64d
commit 22b833d93d
1 changed files with 4 additions and 4 deletions

View File

@ -331,8 +331,8 @@ markers.get_marker_formspec = function(player, pos, error_msg)
"button_exit[2,6.0;2,0.5;abort;OK]";
else
formspec = formspec..
'label[0.5,2.0;Buying this area will cost you ]'..
'label[4.7,2.0;'..markers.calculate_area_price_text( coords[1], coords[2], name )..'.]'..
-- 'label[0.5,2.0;Buying this area will cost you ]'..
-- 'label[4.7,2.0;'..markers.calculate_area_price_text( coords[1], coords[2], name )..'.]'..
'label[0.5,3.0;Your area ought to go..]'..
'label[0.5,3.5;this many blocks up:]'..
@ -348,7 +348,7 @@ markers.get_marker_formspec = function(player, pos, error_msg)
"button_exit[2,6.0;2,0.5;abort;Abort]"..
-- code the position in the "Buy area" field
"button_exit[6,6.0;2,0.5;"..minetest.pos_to_string(pos)..";Buy area]";
"button_exit[6,6.0;2,0.5;"..minetest.pos_to_string(pos)..";Protect area]";
end
return formspec;
@ -469,7 +469,7 @@ markers.form_input_handler = function( player, formname, fields)
--- decode the position of the marker (which is hidden in the Buy-buttons name
local pos = {};
for k, v in pairs( fields ) do
if( v == 'Buy area' ) then
if( v == 'Protect area' ) then
pos = minetest.string_to_pos( k );
end
end