mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-13 18:20:17 +01:00
Fix the usage' tooltip again (thanks @Ezhh)
This commit is contained in:
parent
5fce8ddbda
commit
44ebb84e89
5
init.lua
5
init.lua
@ -160,14 +160,13 @@ function craftguide:get_recipe(iY, xoffset, recipe_num, recipes, show_usage)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local output = recipes[recipe_num].output
|
local output = recipes[recipe_num].output:match("%S+")
|
||||||
return formspec ..
|
return formspec ..
|
||||||
"image[" .. (xoffset - 1) .. "," .. (iY + (sfinv_only and 2.85 or 2.35)) ..
|
"image[" .. (xoffset - 1) .. "," .. (iY + (sfinv_only and 2.85 or 2.35)) ..
|
||||||
";0.9,0.7;craftguide_arrow.png]" ..
|
";0.9,0.7;craftguide_arrow.png]" ..
|
||||||
"item_image_button[" .. (xoffset - 2) .. "," ..
|
"item_image_button[" .. (xoffset - 2) .. "," ..
|
||||||
(iY + (sfinv_only and 2.7 or 2.2)) .. ";1,1;" ..
|
(iY + (sfinv_only and 2.7 or 2.2)) .. ";1,1;" ..
|
||||||
output .. ";" .. output .. ";]" ..
|
output .. ";" .. output .. ";]" .. self:get_tooltip(output)
|
||||||
self:get_tooltip(output:match("%S+"))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function craftguide:get_formspec(player_name, is_fuel)
|
function craftguide:get_formspec(player_name, is_fuel)
|
||||||
|
Loading…
Reference in New Issue
Block a user