mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 10:53:43 +01:00
Fix item positioning for large recipes
This commit is contained in:
parent
bf28a48c40
commit
679e005f58
8
init.lua
8
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
|
||||
@ -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)
|
||||
|
BIN
textures/craftguide_mesepick.png
Normal file
BIN
textures/craftguide_mesepick.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
textures/craftguide_steelpick.png
Normal file
BIN
textures/craftguide_steelpick.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in New Issue
Block a user