summaryrefslogtreecommitdiff
path: root/chat_commands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'chat_commands.lua')
-rw-r--r--chat_commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat_commands.lua b/chat_commands.lua
index 3f4ed68..c85d1ed 100644
--- a/chat_commands.lua
+++ b/chat_commands.lua
@@ -42,7 +42,7 @@ minetest.register_chatcommand("awd", {
params = S("<achievement ID>"),
description = S("Show details of an achievement"),
func = function(name, param)
- local def = awards.def[param]
+ local def = awards.registered_awards[param]
if def then
minetest.chat_send_player(name, string.format(S("%s: %s"), def.title, def.description))
else