Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 4483f60

Browse files
committed
Fix icon not showing
1 parent 79693f5 commit 4483f60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

init.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ local function get_output_fs(data, fs, L)
741741
if sub(icon, 1, 18) == "craftguide_furnace" then
742742
fs[#fs + 1] = fmt(FMT.animated_image,
743743
pos_x, pos_y + L.spacing, 0.5, 0.5, PNG.furnace_anim, 8, 180)
744+
else
745+
fs[#fs + 1] = fmt(FMT.image, pos_x, pos_y + L.spacing, 0.5, 0.5, icon)
744746
end
745747

746748
local tooltip = custom_recipe and custom_recipe.description or
@@ -925,8 +927,7 @@ local function get_panels(data, fs)
925927
if not sfinv_only then
926928
panels.favs = {height = 2.19}
927929
else
928-
panels = data.show_usages and
929-
{{dat = data.usages}} or {{dat = data.recipes}}
930+
panels = data.show_usages and {{dat = data.usages}} or {{dat = data.recipes}}
930931
end
931932

932933
for k, v in pairs(panels) do

0 commit comments

Comments
 (0)