diff options
author | Wuzzy <almikes@aol.com> | 2016-08-07 13:57:16 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-14 13:16:30 +0200 |
commit | c1fcc06059ee15e2a2f751cb223351c4be9bccc7 (patch) | |
tree | a1a11fb75608a1c0097687a84d6e4b86054758c2 /register.lua | |
parent | f8082a0e353b78609c71d1d25fa307aecc63b747 (diff) |
Fix horizontal craft guide offset for large crafts
Diffstat (limited to 'register.lua')
-rw-r--r-- | register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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( |