fix nil queue problem from #262

This commit is contained in:
Tnze
2023-08-19 05:05:12 +08:00
parent 24424e93b8
commit 44d33f6e51

View File

@ -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.