mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 20:43:42 +01:00
Fix icon not showing
This commit is contained in:
parent
79693f5c88
commit
4483f60cbc
5
init.lua
5
init.lua
@ -741,6 +741,8 @@ local function get_output_fs(data, fs, L)
|
|||||||
if sub(icon, 1, 18) == "craftguide_furnace" then
|
if sub(icon, 1, 18) == "craftguide_furnace" then
|
||||||
fs[#fs + 1] = fmt(FMT.animated_image,
|
fs[#fs + 1] = fmt(FMT.animated_image,
|
||||||
pos_x, pos_y + L.spacing, 0.5, 0.5, PNG.furnace_anim, 8, 180)
|
pos_x, pos_y + L.spacing, 0.5, 0.5, PNG.furnace_anim, 8, 180)
|
||||||
|
else
|
||||||
|
fs[#fs + 1] = fmt(FMT.image, pos_x, pos_y + L.spacing, 0.5, 0.5, icon)
|
||||||
end
|
end
|
||||||
|
|
||||||
local tooltip = custom_recipe and custom_recipe.description or
|
local tooltip = custom_recipe and custom_recipe.description or
|
||||||
@ -925,8 +927,7 @@ local function get_panels(data, fs)
|
|||||||
if not sfinv_only then
|
if not sfinv_only then
|
||||||
panels.favs = {height = 2.19}
|
panels.favs = {height = 2.19}
|
||||||
else
|
else
|
||||||
panels = data.show_usages and
|
panels = data.show_usages and {{dat = data.usages}} or {{dat = data.recipes}}
|
||||||
{{dat = data.usages}} or {{dat = data.recipes}}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in pairs(panels) do
|
for k, v in pairs(panels) do
|
||||||
|
Loading…
Reference in New Issue
Block a user