swap the craft type icon with its word

(makes it look like it used to)
This commit is contained in:
Vanessa Dannenberg 2021-03-08 14:01:29 -05:00
parent 1210dbfe22
commit 8ee0eb9fce

View File

@ -347,10 +347,10 @@ ui.register_page("craftguide", {
ui.craft_type_defaults(craft.type, {}) ui.craft_type_defaults(craft.type, {})
if craft_type.icon then if craft_type.icon then
formspec[n] = string.format("image[%f,%f;%f,%f;%s]", formspec[n] = string.format("image[%f,%f;%f,%f;%s]",
craftarrowx+0.1, crafty + 0.95, 1, 1, craft_type.icon) craftarrowx+0.35, crafty, 0.5, 0.5, craft_type.icon)
n = n + 1 n = n + 1
end end
formspec[n] = string.format("label[%f,%f;%s]", craftarrowx+0.15, crafty+0.2, F(craft_type.description)) formspec[n] = string.format("label[%f,%f;%s]", craftarrowx + 0.15, crafty + 1.4, F(craft_type.description))
n = n + 1 n = n + 1
local display_size = craft_type.dynamic_display_size local display_size = craft_type.dynamic_display_size