diff --git a/mods/crafting/api.lua b/mods/crafting/api.lua index c507cf9..0bd267a 100644 --- a/mods/crafting/api.lua +++ b/mods/crafting/api.lua @@ -276,7 +276,7 @@ form = form .. "listring[current_player;main]" form = form .. "listring[current_player;craft_out]" form = form .. default.ui.get_itemslot_bg(0.25, 0.25, 1, 4) -form = form .. default.ui.get_itemslot_bg(7.25, 3.25, 1, 1) +form = form .. default.ui.get_output_itemslot_bg(7.25, 3.25, 1, 1) form = form .. default.ui.button(7.25, 1.25, 1, 1, "do_craft_1", "1") form = form .. default.ui.button(7.25, 2.25, 1, 1, "do_craft_10", "10") diff --git a/mods/default/formspec.lua b/mods/default/formspec.lua index 2a36274..2de4c85 100644 --- a/mods/default/formspec.lua +++ b/mods/default/formspec.lua @@ -63,6 +63,8 @@ function default.ui.get_hotbar_itemslot_bg(x, y, w, h) return out end +default.ui.get_output_itemslot_bg = default.ui.get_hotbar_itemslot_bg + -- Buttons function default.ui.image_button(x, y, w, h, name, image, tooltip) diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index bc58c48..674e67a 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -18,7 +18,7 @@ function default.furnace_active_formspec(percent, item_percent) form = form .. default.ui.get_itemslot_bg(2.25, 2.75, 1, 1) form = form .. "list[current_name;dst;4.25,1.25;2,2;]" - form = form .. default.ui.get_hotbar_itemslot_bg(4.25, 1.25, 2, 2) + form = form .. default.ui.get_output_itemslot_bg(4.25, 1.25, 2, 2) form = form .. "listring[current_player;main]" form = form .. "listring[current_name;src]"