Fix item positioning for large recipes

This commit is contained in:
Jean-Patrick Guerrero 2020-04-16 18:39:39 +02:00
parent bf28a48c40
commit 679e005f58
3 changed files with 4 additions and 4 deletions

@ -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
@ -1166,12 +1166,12 @@ end
craftguide.register_craft_type("digging", {
description = ES"Digging",
icon = "default_tool_steelpick.png",
icon = "craftguide_steelpick.png",
})
craftguide.register_craft_type("digging_chance", {
description = ES"Digging Chance",
icon = "default_tool_mesepick.png",
icon = "craftguide_mesepick.png",
})
local function search(data)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB