From 44d33f6e519579ea5f7eed7f96ec288fb9e619e3 Mon Sep 17 00:00:00 2001 From: Tnze Date: Sat, 19 Aug 2023 05:05:12 +0800 Subject: [PATCH] fix nil queue problem from #262 --- bot/mcbot.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/mcbot.go b/bot/mcbot.go index 9f1fe53..873dc9b 100644 --- a/bot/mcbot.go +++ b/bot/mcbot.go @@ -44,10 +44,7 @@ type JoinOptions struct { // JoinServer connect a Minecraft server for playing the game. // Using roughly the same way to parse address as minecraft. func (c *Client) JoinServer(addr string) (err error) { - return c.join(addr, JoinOptions{ - Context: context.Background(), - MCDialer: &mcnet.DefaultDialer, - }) + return c.JoinServerWithOptions(addr, JoinOptions{}) } // JoinServerWithDialer is similar to JoinServer but using a net.Dialer.