diff options
author | Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> | 2018-11-13 20:14:57 +0100 |
---|---|---|
committer | Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> | 2018-11-13 20:15:34 +0100 |
commit | 44ebb84e89a723e27c270775a4a36afa530fbdaf (patch) | |
tree | df836c07896bb9b55daa582b0389cade45ff5b3c | |
parent | 5fce8ddbda3e1aab4d07f91a2254d684e97016c6 (diff) |
Fix the usage' tooltip again (thanks @Ezhh)
-rw-r--r-- | init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -160,14 +160,13 @@ function craftguide:get_recipe(iY, xoffset, recipe_num, recipes, show_usage) end end - local output = recipes[recipe_num].output + local output = recipes[recipe_num].output:match("%S+") return formspec .. "image[" .. (xoffset - 1) .. "," .. (iY + (sfinv_only and 2.85 or 2.35)) .. ";0.9,0.7;craftguide_arrow.png]" .. "item_image_button[" .. (xoffset - 2) .. "," .. (iY + (sfinv_only and 2.7 or 2.2)) .. ";1,1;" .. - output .. ";" .. output .. ";]" .. - self:get_tooltip(output:match("%S+")) + output .. ";" .. output .. ";]" .. self:get_tooltip(output) end function craftguide:get_formspec(player_name, is_fuel) |