Add crafting guide button on furnace
This commit is contained in:
parent
e7f49a54f2
commit
899e8f6d30
3 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
mcl_craftguide = {}
|
||||
|
||||
local craftguide, datas, mt = {}, {}, minetest
|
||||
local progressive_mode = mt.setting_getbool("craftguide_progressive_mode")
|
||||
local get_recipe, get_recipes = mt.get_craft_recipe, mt.get_all_craft_recipes
|
||||
|
@ -426,6 +428,10 @@ function craftguide:on_use(user)
|
|||
end
|
||||
end
|
||||
|
||||
mcl_craftguide.show_craftguide = function(player)
|
||||
craftguide:on_use(player)
|
||||
end
|
||||
|
||||
mt.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if fields.__mcl_craftguide then
|
||||
craftguide:on_use(player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue