@ -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)