diff options
author | Wuzzy <almikes@aol.com> | 2016-08-07 15:08:40 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-14 13:16:30 +0200 |
commit | 3bc3fae648a9529dee8920e5cfefa50f4407aeb7 (patch) | |
tree | 27e4e38b82e194507e1d7ded1bdb080dc3943dd4 | |
parent | 2ef76af687f6a16a8a6cad83f083bb3ea334002e (diff) |
Hide “To crafting grid:” for crafts with size > 3
-rw-r--r-- | register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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]" |