fix madness if using tooltips mod
parent
605727d7ba
commit
3d3e9727b7
4
init.lua
4
init.lua
|
@ -24,10 +24,10 @@ core.register_chatcommand("getinv", {
|
||||||
local isempty = inv:is_empty(ilist)
|
local isempty = inv:is_empty(ilist)
|
||||||
if not list or isempty == true then return false, "List not exists or empty" end
|
if not list or isempty == true then return false, "List not exists or empty" end
|
||||||
for _,stack in ipairs(list) do
|
for _,stack in ipairs(list) do
|
||||||
local descr = stack:get_description()
|
local descr = stack:get_short_description()
|
||||||
if descr and descr ~= "" then
|
if descr and descr ~= "" then
|
||||||
out = out..descr..", "
|
out = out..descr..", "
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return true, "Inventory '"..ilist.."' of "..pname..": "..out
|
return true, "Inventory '"..ilist.."' of "..pname..": "..core.strip_colors(out)
|
||||||
end})
|
end})
|
||||||
|
|
Loading…
Reference in New Issue