1
0
mirror of https://bitbucket.org/adrido/arrow_signs.git synced 2024-09-30 05:40:21 +02:00

format text message "too much lines"

This commit is contained in:
adrido 2015-04-26 10:50:04 +02:00
parent 0f7badedd9
commit bfc552c38e

View File

@ -122,7 +122,7 @@ arrow_signs.savetext = function(pos, formname, fields, sender)
local text,lines = arrow_signs.create_lines(fields.text) local text,lines = arrow_signs.create_lines(fields.text)
meta:set_string("infotext", '"'..text..'"') meta:set_string("infotext", '"'..text..'"')
if lines > 4 then if lines > 4 then
minetest.chat_send_player(sender:get_player_name(),"\tInformation: \nYou've written more than 5 lines. \n it may be that not all lines are displayed. \n Please remove the last entry") minetest.chat_send_player(sender:get_player_name(),"Information: \nYou've written more than 5 lines. \nIt may be that not all lines are displayed. \nPlease remove the last entry")
end end
return true return true
end end