From 08e758aca5616e0ed951c5c7900595adf23fa44b Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 9 Sep 2019 19:02:09 +0200 Subject: [PATCH] Fix shapeless width bounds --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8a8e8e9..7e7105e 100644 --- a/init.lua +++ b/init.lua @@ -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)