fix nil queue problem from #262
This commit is contained in:
@ -44,10 +44,7 @@ type JoinOptions struct {
|
|||||||
// JoinServer connect a Minecraft server for playing the game.
|
// JoinServer connect a Minecraft server for playing the game.
|
||||||
// Using roughly the same way to parse address as minecraft.
|
// Using roughly the same way to parse address as minecraft.
|
||||||
func (c *Client) JoinServer(addr string) (err error) {
|
func (c *Client) JoinServer(addr string) (err error) {
|
||||||
return c.join(addr, JoinOptions{
|
return c.JoinServerWithOptions(addr, JoinOptions{})
|
||||||
Context: context.Background(),
|
|
||||||
MCDialer: &mcnet.DefaultDialer,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// JoinServerWithDialer is similar to JoinServer but using a net.Dialer.
|
// JoinServerWithDialer is similar to JoinServer but using a net.Dialer.
|
||||||
|
Reference in New Issue
Block a user