From 2ddeb05f830c9e3315091375bfae9aa8a3809a14 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:30:55 -0800 Subject: [PATCH] attempt to fix test --- mtt.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mtt.lua b/mtt.lua index 61c51da..47f83c4 100644 --- a/mtt.lua +++ b/mtt.lua @@ -1,5 +1,13 @@ mtt.register("send mail", function(callback) + local auth_handler = minetest.get_auth_handler() + if not auth_handler:get_auth("player1") then + auth_handler:create_auth("player1", "test") + end + if not auth_handler:get_auth("player2") then + auth_handler:create_auth("player2", "test") + end + -- send a mail mail.send("player1", "player2", "something", "blah") @@ -7,4 +15,4 @@ mtt.register("send mail", function(callback) local list2 = mail.getMessages("player2") assert(list2 ~= nil and #list2 > 0) callback() -end) \ No newline at end of file +end)