mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-17 19:56:37 -04:00
Fix HUD notification
This commit is contained in:
parent
2d7e1993c7
commit
a7e4ad1777
3 changed files with 5 additions and 1 deletions
3
api.lua
3
api.lua
|
@ -99,6 +99,9 @@ function mail.send(m)
|
|||
local name = player:get_player_name()
|
||||
if recipients[name] then
|
||||
minetest.chat_send_player(name, mail_alert)
|
||||
local receiver_entry = mail.get_storage_entry(name)
|
||||
local receiver_messages = receiver_entry.inbox
|
||||
mail.hud_update(name, receiver_messages)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue