mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-17 11:46:45 -04:00
Fix mail notification on login
This commit is contained in:
parent
3e3ea414ba
commit
2d7e1993c7
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ minetest.register_on_joinplayer(function(player)
|
||||||
local unreadcount = 0
|
local unreadcount = 0
|
||||||
|
|
||||||
for _, message in pairs(messages) do
|
for _, message in pairs(messages) do
|
||||||
if message.unread then
|
if not message.read then
|
||||||
unreadcount = unreadcount + 1
|
unreadcount = unreadcount + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue