mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Fix mtt.lua
Due to old function getMessages(), replaced by getPlayerInboxMessages()
This commit is contained in:
parent
0333ba7fe7
commit
c7692b1ff1
1 changed files with 2 additions and 2 deletions
4
mtt.lua
4
mtt.lua
|
@ -8,7 +8,7 @@ mtt.register("send mail", function(callback)
|
||||||
mail.send("player1", "player2", "something", "blah")
|
mail.send("player1", "player2", "something", "blah")
|
||||||
|
|
||||||
-- check the receivers inbox
|
-- check the receivers inbox
|
||||||
local list2 = mail.getMessages("player2")
|
local list2 = mail.getPlayerInboxMessages("player2")
|
||||||
assert(list2 ~= nil and #list2 > 0)
|
assert(list2 ~= nil and #list2 > 0)
|
||||||
callback()
|
callback()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue