mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-13 19:50:31 +01:00
Fix potential crash
This commit is contained in:
parent
bb42557455
commit
ba05c8d7b3
3
init.lua
3
init.lua
@ -1754,7 +1754,8 @@ local function get_award_list(fs, ctn_len, yextra, award_list, awards_unlocked,
|
||||
local y = yextra - 0.7 + i + (i * 0.3)
|
||||
|
||||
local def, progress = award.def, award.progress
|
||||
local title, desc = def.title, def.description:gsub("%.$", "") or ""
|
||||
local title = def.title
|
||||
local desc = def.description and def.description:gsub("%.$", "") or ""
|
||||
|
||||
local title_lim, _title = 26
|
||||
local desc_lim, _desc = 39
|
||||
|
Loading…
Reference in New Issue
Block a user