summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 20:04:42 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 20:04:42 +0100
commitdc1ba8245ed641c976a4ede764c5ae8bc974af3c (patch)
tree55968cdcb0fcda4cf460942ddf70ef47cca919a7
parent6c9e2b385a60e4f88dea9fde9aaca93cff6d1fe2 (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 0842944..eef99bc 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 #items > 9 then
+ if width > 3 or rows > 3 then
formspec = formspec.."label["..(offset_X)..","..(iY+2)..
";Recipe is too big to\nbe displayed ("..
width.."x"..rows..")]"