1
0
Fork 0
MineClone2_For_PRs/mods/HUD/awards/unified_inventory.lua

13 lines
365 B
Lua
Raw Normal View History

2021-05-23 13:43:59 +02:00
if minetest.get_modpath("unified_inventory") then
local S = minetest.get_translator(minetest.get_current_modname())
2017-03-04 00:55:34 +01:00
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