mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 22:20:37 -04:00
add sfinv_buttons compatibility
This commit is contained in:
parent
3eafeb4cf8
commit
94f37da092
4 changed files with 15 additions and 5 deletions
10
gui.lua
10
gui.lua
|
@ -10,3 +10,13 @@ if minetest.get_modpath("unified_inventory") then
|
|||
end
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("sfinv_buttons") then
|
||||
sfinv_buttons.register_button("mail", {
|
||||
title = "Mail",
|
||||
image = "mail_button.png",
|
||||
action = function(player)
|
||||
mail.show_mail_menu(player:get_player_name())
|
||||
end
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue