storage rewrite wip

This commit is contained in:
BuckarooBanzay 2023-03-27 19:40:37 +02:00 committed by Athozus
parent e08238f50e
commit 894e5df4b1
No known key found for this signature in database
GPG key ID: B50895022E8484BF
7 changed files with 62 additions and 148 deletions

View file

@ -7,7 +7,7 @@ mtt.register("send mail", function(callback)
mail.send({from = "player1", to = "player2", subject = "something", body = "blah"})
-- check the receivers inbox
local list2 = mail.getPlayerInboxMessages("player2")
assert(list2 ~= nil and #list2 > 0)
local entry = mail.get_storage_entry("player2")
assert(entry ~= nil and #entry.inbox > 0)
callback()
end)