add sfinv_buttons compatibility

This commit is contained in:
aBlueShadow 2024-01-08 22:48:17 +01:00 committed by Athozus
parent 3eafeb4cf8
commit 94f37da092
4 changed files with 15 additions and 5 deletions

10
gui.lua
View file

@ -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