summaryrefslogtreecommitdiff
path: root/gui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gui.lua')
-rw-r--r--gui.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui.lua b/gui.lua
index a559b97..49a6796 100644
--- a/gui.lua
+++ b/gui.lua
@@ -166,7 +166,7 @@ function awards.show_to(name, to, sid, text)
end
local data = awards.player(to)
if name == to and data.disabled then
- minetest.chat_send_player(S("You've disabled achievement. Type /awards enable to reenable."))
+ minetest.chat_send_player(name, S("You've disabled achievements. Type /awards enable to reenable."))
return
end
if text then
@@ -215,6 +215,10 @@ if minetest.get_modpath("sfinv") then
on_enter = function(self, player, context)
context.awards_idx = 1
end,
+ is_in_nav = function(self, player, context)
+ local data = awards.player(player:get_player_name())
+ return not data.disabled
+ end,
get = function(self, player, context)
local name = player:get_player_name()
return sfinv.make_formspec(player, context,