Add unified_inventory support

master^2
luk3yx 2019-04-02 20:06:28 +13:00
parent 9d161de9b9
commit d580288402
1 changed files with 12 additions and 1 deletions

View File

@ -263,7 +263,7 @@ if mymenu then
end
if sfinv_menu then
if minetest.global_exists("sfinv_menu") then
sfinv_menu.register_button("multichat:menu", {
title = S("Bate-Papo"),
icon = "multichat_botao.png",
@ -272,3 +272,14 @@ if sfinv_menu then
end,
})
end
if minetest.global_exists("unified_inventory") then
unified_inventory.register_button("multichat:menu", {
type = "image",
image = "multichat_botao.png",
tooltip = S("Bate-Papo"),
action = function(player)
multichat.acessar_menu(player:get_player_name())
end,
})
end