2×2 for shapeless recipe w/ <= 4 items

This commit is contained in:
Wuzzy2 2019-03-13 15:13:37 +01:00 committed by Jean-Patrick Guerrero
parent 9df355b899
commit eb7292da7a
1 changed files with 2 additions and 1 deletions

View File

@ -423,7 +423,8 @@ local function get_recipe_fs(data, iY)
cooktime, width = width, 1
elseif width == 0 then
shapeless = true
width = min(3, #recipe.items)
local n = #recipe.items
width = n <= 4 and 2 or min(3, n)
end
local rows = ceil(maxn(recipe.items) / width)