Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexOutOfRangeException when handling MultiBlockUpdate Packets #9

Closed
psu-de opened this issue Jul 23, 2022 · 1 comment
Closed

IndexOutOfRangeException when handling MultiBlockUpdate Packets #9

psu-de opened this issue Jul 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@psu-de
Copy link
Owner

psu-de commented Jul 23, 2022

Not everytime, but often when handling MultiBlockUpdate Packets, an exception like this is thrown:

There occurred an error while handling the packet: System.IndexOutOfRangeException: Index was outside the bounds of the array. at MineSharp.World.World.MultiblockUpdate(Int64[] blocks, Int32 cX, Int32 cY, Int32 cZ) in ...\MineSharp\Components\MineSharp.World\World.cs:line 60 at MineSharp.Bot.Modules.WorldModule.handleMultiBlockChange(PacketMultiBlockChange packet) in ...\MineSharp\MineSharp.Bot\Modules\WorldModule.cs:line 61 at MineSharp.Bot.MinecraftBot.<>c__DisplayClass126_01.<On>b__1(IPacketPayload p) in ...\MineSharp\MineSharp.Bot\MinecraftBot.cs:line 167 at MineSharp.Bot.MinecraftBot.Events_PacketReceived(MinecraftClient client, IPacketPayload packet) in ...\MineSharp\MineSharp.Bot\MinecraftBot.cs:line 185 at MineSharp.Protocol.MinecraftClient.<>c__DisplayClass53_0.<StreamLoop>b__1(Object _) in ...\MineSharp\Components\MineSharp.Protocol\MinecraftClient.cs:line 188

@psu-de psu-de added the bug Something isn't working label Jul 23, 2022
@psu-de
Copy link
Owner Author

psu-de commented Jul 23, 2022

Fixed with #10

@psu-de psu-de closed this as completed Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant