File tree 2 files changed +8
-7
lines changed
core/src/main/java/org/geysermc/geyser/network
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,11 @@ private boolean setCorrectCodec(int protocolVersion) {
120
120
session .disconnect (disconnectMessage );
121
121
return false ;
122
122
} else if (protocolVersion < GameProtocol .DEFAULT_BEDROCK_CODEC .getProtocolVersion ()) {
123
- if (protocolVersion < Bedrock_v622 .CODEC .getProtocolVersion ()) {
124
- // https://github.com/GeyserMC/Geyser/issues/4378
125
- session .getUpstream ().getSession ().setCodec (BedrockCompat .CODEC_LEGACY );
126
- }
123
+ // A note on the following line: various older client versions have different forms of DisconnectPacket.
124
+ // Using only the latest BedrockCompat for such clients leads to inaccurate disconnect messages: https://github.com/GeyserMC/Geyser/issues/4378
125
+ // This updates the BedrockCompat protocol if necessary:
126
+ session .getUpstream ().getSession ().setCodec (BedrockCompat .disconnectCompat (protocolVersion ));
127
+
127
128
session .disconnect (GeyserLocale .getLocaleStringLog ("geyser.network.outdated.client" , supportedVersions ));
128
129
return false ;
129
130
} else {
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ netty-io-uring = "0.0.25.Final-SNAPSHOT"
10
10
guava = " 29.0-jre"
11
11
gson = " 2.3.1" # Provided by Spigot 1.8.8
12
12
websocket = " 1.5.1"
13
- protocol-connection = " 3.0.0.Beta3-20240819.124045-12 "
14
- protocol-common = " 3.0.0.Beta3-20240819.124045-10 "
15
- protocol-codec = " 3.0.0.Beta3-20240819.124045-13 "
13
+ protocol-connection = " 3.0.0.Beta4-20240828.162251-1 "
14
+ protocol-common = " 3.0.0.Beta4-20240828.162251-1 "
15
+ protocol-codec = " 3.0.0.Beta4-20240828.162251-1 "
16
16
raknet = " 1.0.0.CR3-20240416.144209-1"
17
17
minecraftauth = " 4.1.1-20240806.235051-7"
18
18
mcprotocollib = " 1.21-20240725.013034-16"
You can’t perform that action at this time.
0 commit comments