ed3c8b97a1
* update testing harness / move contact-list function to util * Use 5.x.1 versioning --------- Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> Co-authored-by: Athozus <athozus@gmail.com>
17 lines
469 B
Lua
17 lines
469 B
Lua
|
|
if minetest.get_modpath("unified_inventory") then
|
|
mail.receive_mail_message = mail.receive_mail_message ..
|
|
" or use the mail button in the inventory"
|
|
mail.read_later_message = mail.read_later_message ..
|
|
" or by using the mail button in the inventory"
|
|
|
|
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
|