Better chat message

This commit is contained in:
Jean-Patrick Guerrero 2021-04-08 04:45:19 +02:00
parent 3db6bbead0
commit eed43032bc

View File

@ -1255,8 +1255,7 @@ local function select_item(player, name, data, _f)
local stack = ItemStack(item) local stack = ItemStack(item)
local stackmax = stack:get_stack_max() local stackmax = stack:get_stack_max()
stack = fmt("%s %s", item, stackmax) stack = fmt("%s %s", item, stackmax)
get_stack(player, name, stack, clr("#ff0", fmt("%u x %s", stackmax, item))) return get_stack(player, name, stack, clr("#ff0", fmt("%u x %s", stackmax, get_desc(item))))
return
end end
if item == data.query_item then return end if item == data.query_item then return end