forked from VoxeLibre/VoxeLibre
Craftguide: 2×2 for shapeless recipe w/ <= 4 items
This commit is contained in:
parent
9fc834c8db
commit
e24a698bae
|
@ -471,8 +471,12 @@ local function get_recipe_fs(data, iY)
|
||||||
cooktime, width = width, 1
|
cooktime, width = width, 1
|
||||||
elseif width == 0 then
|
elseif width == 0 then
|
||||||
shapeless = true
|
shapeless = true
|
||||||
|
if #recipe.items <= 4 then
|
||||||
|
width = 2
|
||||||
|
else
|
||||||
width = min(3, #recipe.items)
|
width = min(3, #recipe.items)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local rows = ceil(maxn(recipe.items) / width)
|
local rows = ceil(maxn(recipe.items) / width)
|
||||||
local rightest, btn_size, s_btn_size = 0, 1.1
|
local rightest, btn_size, s_btn_size = 0, 1.1
|
||||||
|
|
Loading…
Reference in New Issue