Fix message notifications (#46)

* Fix mail notification on login

* Fix HUD notification
This commit is contained in:
Athozus 2023-04-01 19:14:53 +02:00 committed by GitHub
parent 3e3ea414ba
commit 56e86cd5e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -43,7 +43,7 @@ function mail.hud_update(playername, messages)
local unreadcount = 0
for _, message in ipairs(messages) do
if message.unread then
if not message.read then
unreadcount = unreadcount + 1
end
end