minetest-mods/mail/gui.lua

13 lines
262 B
Lua
Raw Normal View History

2024-01-24 18:04:01 +01:00
if minetest.get_modpath("unified_inventory") then
unified_inventory.register_button("mail", {
type = "image",
image = "mail_button.png",
tooltip = "Mail",
action = function(player)
mail.show_mail_menu(player:get_player_name())
end
})
end