diff --git a/register.lua b/register.lua index 36920c1..72d7077 100644 --- a/register.lua +++ b/register.lua @@ -296,7 +296,7 @@ unified_inventory.register_page("craftguide", { if craft and x <= craft_width then item = craft.items[(y-1) * craft_width + x] end - local xof = (x-1) * of + 1 + local xof = (x-1) * of + of local yof = (y-1) * of + 1 if item then formspec = formspec..stack_image_button(