Last commit's cleanup

This commit is contained in:
Jean-Patrick Guerrero
2021-11-30 03:52:18 +01:00
parent 95b0434f95
commit 80b675f817
3 changed files with 14 additions and 9 deletions

View File

@ -19,7 +19,7 @@ function core.is_creative_enabled(name)
return core.check_player_privs(name, {creative = true}) or old_is_creative_enabled(name)
end
local S = core.get_translator "i3"
local S = core.get_translator"i3"
local ES = function(...) return core.formspec_escape(S(...)) end
local function is_num(x)
@ -71,8 +71,8 @@ end
local function get_bag_description(data, stack)
local desc = translate(data.lang_code, stack:get_description())
desc = desc:match("(.*)%(+") or desc
desc = ESC(toupper(desc:trim()))
desc = split(desc, "(")[1] or desc
desc = toupper(desc:trim())
return desc
end