mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 22:21:24 +00:00
12 lines
262 B
Lua
12 lines
262 B
Lua
|
|
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
|