Fix tooltip display
Tooltip was displaying "Unknown item" on empty slots when using a replacement in craft.
This commit is contained in:
parent
24115a0d84
commit
04ed8b2cb7
3
init.lua
3
init.lua
|
@ -790,6 +790,9 @@ local function str_newline(str)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_desc(item, lang_code)
|
local function get_desc(item, lang_code)
|
||||||
|
if item == "" then
|
||||||
|
return ""
|
||||||
|
end
|
||||||
if sub(item, 1, 1) == "_" then
|
if sub(item, 1, 1) == "_" then
|
||||||
item = sub(item, 2)
|
item = sub(item, 2)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue