summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 21:19:15 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 21:20:53 +0100
commit757e537ea427c14c37709f98d80cf8e163d7c2f2 (patch)
treea6252812db9cc6bc100193cebe020c4efb78e23c
parentdc1ba8245ed641c976a4ede764c5ae8bc974af3c (diff)
Fix checking for big recipes
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index eef99bc..5933a88 100644
--- a/init.lua
+++ b/init.lua
@@ -90,7 +90,7 @@ function craftguide:get_recipe(player_name, tooltip_l, item, recipe_num, recipes
-- https://github.com/kilbith/xdecor/blob/master/handlers/helpers.lua#L1
local rows = ceil(table.maxn(items) / width)
- if width > 3 or rows > 3 then
+ if recipe_type == "normal" and width > 3 or rows > 3 then
formspec = formspec.."label["..(offset_X)..","..(iY+2)..
";Recipe is too big to\nbe displayed ("..
width.."x"..rows..")]"