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.