Get rid of the image button left of the crafting guide
It had the same function as clicking the craft result on the right (just inverted), making it redundant. Click either one more than once and UI would alternately show usages or recipes.
This commit is contained in:
parent
dc61d2980a
commit
2c16805ef9
@ -342,9 +342,7 @@ ui.register_page("craftguide", {
|
|||||||
else
|
else
|
||||||
formspec[n] = stack_image_button(craftguideresultx, craftguidey, 1.2, 1.2,
|
formspec[n] = stack_image_button(craftguideresultx, craftguidey, 1.2, 1.2,
|
||||||
"item_button_" .. rdir .. "_", ItemStack(craft.output))
|
"item_button_" .. rdir .. "_", ItemStack(craft.output))
|
||||||
formspec[n+1] = stack_image_button(craftguidex-2.3, craftguidey, 1.2, 1.2,
|
n = n + 1
|
||||||
"item_button_usage_", ItemStack(item_name))
|
|
||||||
n = n + 2
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local craft_type = ui.registered_craft_types[craft.type] or
|
local craft_type = ui.registered_craft_types[craft.type] or
|
||||||
|
Loading…
Reference in New Issue
Block a user