Version 0.41.3
[MineClone/MineClone2/MineClone2-Fixes.git] / mods / HUD / awards / unified_inventory.lua
bloba4bb02dc3e701ada180b254c273b74fd16f3b72d
1 if minetest.get_modpath("unified_inventory") ~= nil then
2 local S
3 if minetest.get_modpath("intllib") then
4 S = intllib.Getter()
5 else
6 S = function ( s ) return s end
7 end
9 unified_inventory.register_button("awards", {
10 type = "image",
11 image = "awards_ui_icon.png",
12 tooltip = S("Awards"),
13 action = function(player)
14 local name = player:get_player_name()
15 awards.show_to(name, name, nil, false)
16 end,
18 end