Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Also make sure to use the latest ping serializer as well
Dieser Commit ist enthalten in:
Ursprung
bd54b34334
Commit
64ea90d254
@ -743,9 +743,18 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
|||||||
return bossBarManager;
|
return bossBarManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a Gson instance for use in serializing server ping instances.
|
||||||
|
*
|
||||||
|
* @param version the protocol version in use
|
||||||
|
* @return the Gson instance
|
||||||
|
*/
|
||||||
public static Gson getPingGsonInstance(ProtocolVersion version) {
|
public static Gson getPingGsonInstance(ProtocolVersion version) {
|
||||||
return version.compareTo(ProtocolVersion.MINECRAFT_1_16) >= 0 ? POST_1_16_PING_SERIALIZER
|
if (version == ProtocolVersion.UNKNOWN
|
||||||
: PRE_1_16_PING_SERIALIZER;
|
|| version.compareTo(ProtocolVersion.MINECRAFT_1_16) >= 0) {
|
||||||
|
return POST_1_16_PING_SERIALIZER;
|
||||||
|
}
|
||||||
|
return PRE_1_16_PING_SERIALIZER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren