Compare commits

...
2 Commits
Author SHA1 Message Date
dependabot[bot] 32f3cc51b1 Bump gradle-wrapper from 9.8.1 to 9.8.2 (#650)
Bumps [gradle-wrapper](https://github.com/gradle/gradle) from 9.8.1 to 9.8.2.
- [Release notes](https://github.com/gradle/gradle/releases)
- [Commits](https://github.com/gradle/gradle/compare/v9.8.1...v9.8.2)

---
updated-dependencies:
- dependency-name: gradle-wrapper
  dependency-version: 9.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-27 14:57:56 +01:00
Akkariin 76dc4f0232 fix(protocol): correct PlayerInputPacket ID on 26.1+ to fix F3+3 disconnect (#648) (#649)
In Minecraft 26.1, 26.2, and 26.3, ServerboundPlayerInputPacket is registered
at packet ID 0x2B, while 0x26 is ServerboundPingRequestPacket.

Previously, PlayerInputPacket was incorrectly mapped to 0x26 for MINECRAFT_26_1.
When a client joined with the F3+3 network chart open or toggled F3+3 during
verification, the client sent ServerboundPingRequestPacket (0x26, 8 bytes).
Sonar attempted to decode it as PlayerInputPacket (which only reads 1 byte in
1.21.2+), leaving 7 unread bytes. SonarPacketDecoder threw QuietDecoderException,
causing TailExceptionsHandler to silently close the channel, resulting in a client
disconnection with 'Disconnected' without any server-side stack trace.

This commit updates PlayerInputPacket's ID on 26.1+ to 0x2B, allowing PingRequest
(0x26) to be safely ignored by SonarPacketDecoder.
2026-10-25 17:57:46 +01:00
2 changed files with 2 additions and 3 deletions

No files matched your search

@@ -544,8 +544,7 @@ public enum SonarPacketRegistry {
map(0x28, MINECRAFT_1_21_2, false),
map(0x29, MINECRAFT_1_21_4, false),
map(0x2A, MINECRAFT_1_21_6, false),
map(0x26, MINECRAFT_26_1, false),
map(0x2B, MINECRAFT_26_3, false));
map(0x2B, MINECRAFT_26_1, false));
// minecraft:move_vehicle
serverbound.register(VehicleMovePacket.class, VehicleMovePacket::new,
map(0x10, MINECRAFT_1_9, false),
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500