From d8a4dfc0938f49b21da6a76940341f4b44d0348e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 7 Aug 2016 13:57:16 +0200 Subject: [PATCH] Fix horizontal craft guide offset for large crafts --- register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.lua b/register.lua index 2aa20c2..8b4066c 100644 --- a/register.lua +++ b/register.lua @@ -287,7 +287,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(