Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Include compatible protocol versions in the incompatible version message
Fixes #519
Dieser Commit ist enthalten in:
Ursprung
83dff50bc7
Commit
5a337afb00
@ -118,7 +118,8 @@ public class HandshakeSessionHandler implements MinecraftSessionHandler {
|
|||||||
|
|
||||||
private void handleLogin(Handshake handshake, InitialInboundConnection ic) {
|
private void handleLogin(Handshake handshake, InitialInboundConnection ic) {
|
||||||
if (!ProtocolVersion.isSupported(handshake.getProtocolVersion())) {
|
if (!ProtocolVersion.isSupported(handshake.getProtocolVersion())) {
|
||||||
ic.disconnectQuietly(Component.translatable("multiplayer.disconnect.outdated_client"));
|
ic.disconnectQuietly(Component.translatable("multiplayer.disconnect.outdated_client")
|
||||||
|
.args(Component.text(ProtocolVersion.SUPPORTED_VERSION_STRING)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren