Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
When pinging the server with protocol version -1, return the latest version supported by the proxy
This matches BungeeCord's behavior and is in line with what clients specifying this meta-version would expect.
Dieser Commit ist enthalten in:
Ursprung
3852f27eb8
Commit
bd54b34334
@ -47,6 +47,9 @@ public class ServerListPingHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ServerPing constructLocalPing(ProtocolVersion version) {
|
private ServerPing constructLocalPing(ProtocolVersion version) {
|
||||||
|
if (version == ProtocolVersion.UNKNOWN) {
|
||||||
|
version = ProtocolVersion.MAXIMUM_VERSION;
|
||||||
|
}
|
||||||
VelocityConfiguration configuration = server.getConfiguration();
|
VelocityConfiguration configuration = server.getConfiguration();
|
||||||
return new ServerPing(
|
return new ServerPing(
|
||||||
new ServerPing.Version(version.getProtocol(),
|
new ServerPing.Version(version.getProtocol(),
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren