Skip to content

v1.0.5 — CHUNK_DATA compatibility fix

Choose a tag to compare

@Namnarak Namnarak released this 05 Oct 16:24
· 9 commits to main since this release

ProtocolLib2PacketEvents v1.0.5

Compatibility hotfix for ProtocolLib consumers that inspect outgoing Minecraft chunk packets through P2P.

Fixed

  • QuickShop-Hikari CHUNK_DATA / MAP_CHUNK compatibility: PacketContainer#getIntegers() now exposes chunk X and Z at indices 0 and 1, matching the ProtocolLib field layout expected by QuickShop-Hikari.
  • Fixes:
    IndexOutOfBoundsException: No field of type int at index 0
    (found 0 matching field(s) on WrapperPlayServerChunkData)
    
  • PacketEvents keeps chunk coordinates inside WrapperPlayServerChunkData#getColumn(); P2P now provides the appropriate ProtocolLib-compatible view for intercepted chunk packets.
  • Added a regression test covering both chunk coordinate indices.

Validation

Built and tested through GitHub Actions with Java 17:

  • Maven package: passed
  • Tests: passed
  • Release JAR generated by the successful CI run

Upgrade

Replace ProtocolLib2PacketEvents-1.0.4.jar with ProtocolLib2PacketEvents-1.0.5.jar and perform a full server restart.

SHA-256:

2d0b7e4f2aa19030e49a4528bb656e48216bae12a15f2509258c5bbf64d646bb