Fix crash on making an achievement with awards disabled

This commit is contained in:
kay27 2021-07-13 00:40:45 +04:00
parent 34a67e12a9
commit ae3b433098
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ function awards.show_to(name, to, sid, text)
name = to
end
if name == to and awards.player(to).disabled then
minetest.chat_send_player(S("You've disabled awards. Type /awards enable to reenable."))
minetest.chat_send_player(to, S("You've disabled awards. Type /awards enable to reenable."))
return
end
if text then