forked from minetest-mods/craftguide
Fix tooltip
This commit is contained in:
parent
9da500ce2c
commit
74a2750a4d
|
@ -30,7 +30,7 @@ craftguide.register_craft_type("digging", {
|
||||||
```Lua
|
```Lua
|
||||||
craftguide.register_craft({
|
craftguide.register_craft({
|
||||||
type = "digging",
|
type = "digging",
|
||||||
output = "default:cobble",
|
output = "default:cobble 2",
|
||||||
items = {"default:stone"},
|
items = {"default:stone"},
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
2
init.lua
2
init.lua
|
@ -221,7 +221,7 @@ local function _get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
|
||||||
"item_image_button[" .. X .. "," ..
|
"item_image_button[" .. X .. "," ..
|
||||||
(Y + (sfinv_only and 0.7 or 0.2)) .. ";" ..
|
(Y + (sfinv_only and 0.7 or 0.2)) .. ";" ..
|
||||||
BUTTON_SIZE .. "," .. BUTTON_SIZE .. ";" .. item_r ..
|
BUTTON_SIZE .. "," .. BUTTON_SIZE .. ";" .. item_r ..
|
||||||
";" .. item_r .. ";" .. label .. "]" .. tltip
|
";" .. item_r:match("%S*") .. ";" .. label .. "]" .. tltip
|
||||||
end
|
end
|
||||||
|
|
||||||
BUTTON_SIZE = 1.1
|
BUTTON_SIZE = 1.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user