Remove redundant commentary lines
M mods/default/craftitems.lua
This commit is contained in:
parent
6c7f03ce0f
commit
592ed84831
|
@ -111,8 +111,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if #short_title > short_title_size + 3 then
|
if #short_title > short_title_size + 3 then
|
||||||
short_title = short_title:sub(1, short_title_size) .. "..."
|
short_title = short_title:sub(1, short_title_size) .. "..."
|
||||||
end
|
end
|
||||||
-- Make description appropriate to intllib
|
|
||||||
-- data.description = "\""..short_title.."\" by "..data.owner
|
|
||||||
data.description = S("\"@1\" by @2", short_title, data.owner)
|
data.description = S("\"@1\" by @2", short_title, data.owner)
|
||||||
data.text = fields.text:sub(1, max_text_size)
|
data.text = fields.text:sub(1, max_text_size)
|
||||||
data.text = data.text:gsub("\r\n", "\n"):gsub("\r", "\n")
|
data.text = data.text:gsub("\r\n", "\n"):gsub("\r", "\n")
|
||||||
|
|
Loading…
Reference in New Issue