Another locale string to pick up on for outdated servers

This commit is contained in:
Camotoy 2022-06-15 19:59:27 -04:00
parent 4405989b81
commit 7739e8097e
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ public class JavaLoginDisconnectTranslator extends PacketTranslator<ClientboundL
if (disconnectReason instanceof TranslatableComponent component) {
String key = component.key();
isOutdatedMessage = "multiplayer.disconnect.incompatible".equals(key) ||
// Seen with Velocity 1.18 rejecting a 1.19 client
"multiplayer.disconnect.outdated_client".equals(key) ||
// Legacy string (starting from at least 1.15.2)
"multiplayer.disconnect.outdated_server".equals(key)
// Reproduced on 1.15.2 server with ViaVersion 4.0.0-21w20a with 1.18.2 Java client