Fix horizontal craft guide offset for large crafts

This commit is contained in:
Wuzzy 2016-08-07 13:57:16 +02:00
parent fe68a11894
commit d8a4dfc093
1 changed files with 1 additions and 1 deletions

View File

@ -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(