From 3bc3fae648a9529dee8920e5cfefa50f4407aeb7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 7 Aug 2016 15:08:40 +0200 Subject: [PATCH] =?UTF-8?q?Hide=20=E2=80=9CTo=20crafting=20grid:=E2=80=9D?= =?UTF-8?q?=20for=20crafts=20with=20size=20>=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.lua b/register.lua index 56a6a10..8c1c4fe 100644 --- a/register.lua +++ b/register.lua @@ -330,7 +330,7 @@ unified_inventory.register_page("craftguide", { ..";"..minetest.formspec_escape(S("This recipe is too\nlarge to be displayed.")).."]" end - if craft_type.uses_crafting_grid then + if craft_type.uses_crafting_grid and display_size.width <= 3 then formspec = formspec.."label[0,"..(formspecy + 0.9)..";" .. F("To craft grid:") .. "]" .."button[0, "..(formspecy + 1.5)..";0.6,0.5;craftguide_craft_1;1]" .."button[0.6,"..(formspecy + 1.5)..";0.7,0.5;craftguide_craft_10;10]"