diff options
author | kilbith <kilbith@users.noreply.github.com> | 2017-03-19 21:29:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 21:29:47 +0100 |
commit | ee3984da7711e3d6bfc4698d05cb03dcac017050 (patch) | |
tree | 8ab5e33eee4e302a7e7e6fa28251b8d430dc9625 /init.lua | |
parent | 9510ed7daa6075f7f2b3c694ed2f34677f3216fe (diff) | |
parent | a6214a3f1c2b481707700e36410376136ea13b50 (diff) |
Merge pull request #19 from Wuzzy2/button
Add sfinv_buttons support
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -474,4 +474,15 @@ mt.register_craft({ burntime = 10 }) +if mt.get_modpath("sfinv_buttons") then + sfinv_buttons.register_button("craftguide", { + title = "Crafting guide", + tooltip = "Shows a list of available crafting recipes, cooking recipes and fuels", + action = function(player) + craftguide:on_use(nil, player) + end, + image = "craftguide_book.png", + }) +end + mt.register_alias("xdecor:crafting_guide", "craftguide:book") |