ProtocolLib

3M Downloads

"Unload Chunk" packet does not return integers (1.20.2)

DaJokni opened this issue ยท 2 comments

commented
  • This issue is not solved in a development build

Describe the bug
While listening to the unload chunk packet, trying to get the integers from the packet returns nothing, this worked on 1.20.1.

To Reproduce
listen to PacketEvent, check if packettype is unload chunk &:
StructureModifier<Integer> integers = event.getPacket().getIntegers(); System.out.println(integers);

Expected behavior
The integers should be available in the integers method.

Version Info
Build 669 on paper 1.20.2 build 234

Additional context
I believe #2569 could be related.

commented

Mojang changed the underlying packet. You now need to access event.getPacket().getChunkCoordIntPairs() instead

commented

Thanks for the help, ive tested that and it seems to be working correctly now.