mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03:43 +01:00
Fix item positioning for large recipes
This commit is contained in:
parent
bf28a48c40
commit
103624bc28
4
init.lua
4
init.lua
@ -887,9 +887,9 @@ local function get_grid_fs(data, fs, rcp, spacing)
|
||||
_btn_size = btn_size
|
||||
|
||||
X = (btn_size * ((i - 1) % width) + XOFFSET -
|
||||
(sfinv_only and 2.83 or 0.5)) * (0.83 - (x_y / 5))
|
||||
(sfinv_only and 2.83 or 0)) * (0.83 - (x_y / 5))
|
||||
Y = (btn_size * floor((i - 1) / width) +
|
||||
(sfinv_only and 5.81 or 5.5) + x_y) * (0.86 - (x_y / 5))
|
||||
(sfinv_only and 5.81 or 3.92) + x_y) * (0.86 - (x_y / 5))
|
||||
end
|
||||
|
||||
if X > rightest then
|
||||
|
Loading…
Reference in New Issue
Block a user