mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Craftguide: 2×2 for shapeless recipe w/ <= 4 items
This commit is contained in:
parent
9fc834c8db
commit
e24a698bae
1 changed files with 5 additions and 1 deletions
|
@ -471,7 +471,11 @@ local function get_recipe_fs(data, iY)
|
|||
cooktime, width = width, 1
|
||||
elseif width == 0 then
|
||||
shapeless = true
|
||||
width = min(3, #recipe.items)
|
||||
if #recipe.items <= 4 then
|
||||
width = 2
|
||||
else
|
||||
width = min(3, #recipe.items)
|
||||
end
|
||||
end
|
||||
|
||||
local rows = ceil(maxn(recipe.items) / width)
|
||||
|
|
Loading…
Reference in a new issue