Fix mtt.lua

Due to old function getMessages(), replaced by getPlayerInboxMessages()
This commit is contained in:
Athozus 2023-03-08 19:09:24 +01:00
parent 0333ba7fe7
commit c7692b1ff1
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -8,7 +8,7 @@ mtt.register("send mail", function(callback)
mail.send("player1", "player2", "something", "blah")
-- check the receivers inbox
local list2 = mail.getMessages("player2")
local list2 = mail.getPlayerInboxMessages("player2")
assert(list2 ~= nil and #list2 > 0)
callback()
end)
end)