forked from minetest-mods/unified_inventory
Fix horizontal craft guide offset for large crafts
This commit is contained in:
parent
f8082a0e35
commit
c1fcc06059
@ -296,7 +296,7 @@ unified_inventory.register_page("craftguide", {
|
|||||||
if craft and x <= craft_width then
|
if craft and x <= craft_width then
|
||||||
item = craft.items[(y-1) * craft_width + x]
|
item = craft.items[(y-1) * craft_width + x]
|
||||||
end
|
end
|
||||||
local xof = (x-1) * of + 1
|
local xof = (x-1) * of + of
|
||||||
local yof = (y-1) * of + 1
|
local yof = (y-1) * of + 1
|
||||||
if item then
|
if item then
|
||||||
formspec = formspec..stack_image_button(
|
formspec = formspec..stack_image_button(
|
||||||
|
Loading…
Reference in New Issue
Block a user