Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Unable to join server #2

Closed
RandomStrangerOnTheInternet opened this issue Feb 25, 2019 · 2 comments
Closed

Unable to join server #2

RandomStrangerOnTheInternet opened this issue Feb 25, 2019 · 2 comments

Comments

@RandomStrangerOnTheInternet

I'm currently trying this on a server called MineSuperior,

If there is a way to provide you some more information please let me know, I'll try to figure it out myself but it before that I first have to learn a bit more Go 😄

panic: runtime error: index out of range

goroutine 54 [running]:
github.com/Tnze/gomcbot.handleSetSlotPacket(0xc00008e9c0, 0xc000854cc0, 0x1, 0x0)
        C:/Users/.../go/src/github.com/Tnze/gomcbot/ingame.go:243 +0x1cb
github.com/Tnze/gomcbot.handlePack(0xc00008e9c0, 0xc00089cfe0, 0x3, 0x1)
        C:/Users/.../go/src/github.com/Tnze/gomcbot/ingame.go:177 +0x2b1
github.com/Tnze/gomcbot.(*Game).HandleGame(0xc00008e9c0, 0x0, 0x0)
        C:/Users/.../go/src/github.com/Tnze/gomcbot/ingame.go:112 +0x297
created by main.main
        C:/Users/.../Desktop/test.go:30 +0x27f
exit status 2
@RandomStrangerOnTheInternet
Copy link
Author

It fails after it joined the server by the way.

@Tnze
Copy link
Owner

Tnze commented Mar 6, 2019

Oh, it looks like I had a misunderstanding about the protocol.
For temporarily, try to remove the code which handle Slot data at file ingame.go:177

//case 0x17:
//		err = handleSetSlotPacket(g, reader)

@Tnze Tnze closed this as completed Apr 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants