From e24a698baeec77b6684b95c04d0475f4bc3936f3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 12 Mar 2019 23:05:03 +0100 Subject: [PATCH] =?UTF-8?q?Craftguide:=202=C3=972=20for=20shapeless=20reci?= =?UTF-8?q?pe=20w/=20<=3D=204=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/HELP/mcl_craftguide/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/HELP/mcl_craftguide/init.lua b/mods/HELP/mcl_craftguide/init.lua index 56cdd8d1d..4adf25a19 100644 --- a/mods/HELP/mcl_craftguide/init.lua +++ b/mods/HELP/mcl_craftguide/init.lua @@ -471,7 +471,11 @@ local function get_recipe_fs(data, iY) cooktime, width = width, 1 elseif width == 0 then shapeless = true - width = min(3, #recipe.items) + if #recipe.items <= 4 then + width = 2 + else + width = min(3, #recipe.items) + end end local rows = ceil(maxn(recipe.items) / width)