From eb7292da7a9fed822f6411f59165497770ad1869 Mon Sep 17 00:00:00 2001 From: Wuzzy2 Date: Wed, 13 Mar 2019 15:13:37 +0100 Subject: [PATCH] =?UTF-8?q?2=C3=972=20for=20shapeless=20recipe=20w/=20<=3D?= =?UTF-8?q?=204=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8519340..666f408 100644 --- a/init.lua +++ b/init.lua @@ -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)