fixed bug (wrong usage of tostring)

This commit is contained in:
Sokomine 2019-03-24 21:24:04 +01:00
parent 0f4a1c29f2
commit 37b7e2c20e
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ handle_schematics.backup_landscape = function(meta, start_pos, end_pos, player_n
local owner = meta:get_string("owner");
if( owner and owner ~= "" and owner ~= player_name and player_name and player_name ~= "") then
minetest.chat_send_player( player_name,
"Only the owner, namely "..minetest.tostring( owner )..
"Only the owner, namely "..tostring( owner )..
", is allowed to create a backup of this landscape here.");
return;
end
@ -74,7 +74,7 @@ handle_schematics.restore_landscape = function( meta, player_name, force_place,
if( owner and owner ~= "" and owner ~= player_name and player_name and player_name ~= ""
and not( minetest.check_player_privs(player_name, {protection_bypass=true}))) then
minetest.chat_send_player( player_name,
"Only the owner, namely "..minetest.tostring( owner )..
"Only the owner, namely "..tostring( owner )..
", or players with the protection_bypass privilege are allowed to restore the backup.");
return;
end

View File

@ -256,7 +256,7 @@ handle_schematics.update_formspec_save_building = function( formspec, meta, play
-- "1" means the building without floor; here, "1" means a floating building
"label[2,3.8;The hight offset sets how deep your building will be burried in the ground. Examples:]"..
"label[2.5,4.1;A value of -4 will include a cellar which extends 4 nodes below this construction sign.]"..
"label[2.5,4.4;A value of -1 will include the floor below the chest, but no cellar.]"..
"label[2.5,4.4;A value of -1 will include the floor below the sign, but no cellar.]"..
"label[2.5,4.7;A positive value will make your building float in the air.]"..
"label[2,5.15;Add height offset:]"..
"field[6,5.5;1,0.5;save_as_yoff;;0]"..