This repository has been archived on 2024-12-09. You can view files and clone it, but cannot push or open issues or pull requests.
Mineclonia/mods/HUD/awards/unified_inventory.lua
2019-03-07 21:36:06 +01:00

13 lines
351 B
Lua

if minetest.get_modpath("unified_inventory") ~= nil then
local S = minetest.get_translator("awards")
unified_inventory.register_button("awards", {
type = "image",
image = "awards_ui_icon.png",
tooltip = S("Awards"),
action = function(player)
local name = player:get_player_name()
awards.show_to(name, name, nil, false)
end,
})
end