Update mods/default/craftitems.lua

This commit is contained in:
sfan5 2021-06-01 23:09:43 +02:00 committed by GitHub
parent 1daa5f23b4
commit f24558021d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -147,9 +147,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
data.title = fields.title:sub(1, max_title_size)
data.owner = player:get_player_name()
local short_title = data.title
if short_title == "" then
short_title = S("Book")
end
-- Don't bother triming the title if the trailing dots would make it longer
if #short_title > short_title_size + 3 then
short_title = short_title:sub(1, short_title_size) .. "..."