Fix checking for big recipes

This commit is contained in:
JP Guerrero 2016-12-13 20:04:42 +01:00
parent 6c9e2b385a
commit dc1ba8245e

@ -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..")]"