fix madness if using tooltips mod

master
Zemtzov7 2022-08-27 18:54:36 +05:00 committed by GitHub
parent 605727d7ba
commit 3d3e9727b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ core.register_chatcommand("getinv", {
local isempty = inv:is_empty(ilist)
if not list or isempty == true then return false, "List not exists or empty" end
for _,stack in ipairs(list) do
local descr = stack:get_description()
local descr = stack:get_short_description()
if descr and descr ~= "" then
out = out..descr..", "
end
end
return true, "Inventory '"..ilist.."' of "..pname..": "..out
return true, "Inventory '"..ilist.."' of "..pname..": "..core.strip_colors(out)
end})