Fix shapeless width bounds

This commit is contained in:
Jean-Patrick Guerrero 2019-09-09 19:02:09 +02:00
parent 727758b816
commit 08e758aca5
1 changed files with 1 additions and 1 deletions

View File

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