From 74a2750a4d982439a2edb8955166f765bcd8e216 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 17 Dec 2018 01:09:32 +0100 Subject: [PATCH] Fix tooltip --- README.md | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0eb6c64..536a1e5 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ craftguide.register_craft_type("digging", { ```Lua craftguide.register_craft({ type = "digging", - output = "default:cobble", + output = "default:cobble 2", items = {"default:stone"}, }) ``` diff --git a/init.lua b/init.lua index cda282a..b55e57f 100644 --- a/init.lua +++ b/init.lua @@ -221,7 +221,7 @@ local function _get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage) "item_image_button[" .. X .. "," .. (Y + (sfinv_only and 0.7 or 0.2)) .. ";" .. BUTTON_SIZE .. "," .. BUTTON_SIZE .. ";" .. item_r .. - ";" .. item_r .. ";" .. label .. "]" .. tltip + ";" .. item_r:match("%S*") .. ";" .. label .. "]" .. tltip end BUTTON_SIZE = 1.1