3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Hotfix/patch modern forwarding v2 (#727)

Dieser Commit ist enthalten in:
Corey Shupe 2022-06-07 21:11:53 -04:00 committet von GitHub
Ursprung d97ed956a7
Commit 28b6f6dcef
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -171,7 +171,7 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
ByteBuf forwarded = Unpooled.buffer(2048);
try {
int forwardingVersion = version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0 && playerKey != null
? VelocityConstants.MODERN_FORWARDING_WITH_KEY : VelocityConstants.MODERN_FORWARDING_DEFAULT;
? VelocityConstants.MODERN_FORWARDING_DEFAULT : VelocityConstants.MODERN_FORWARDING_DEFAULT;
ProtocolUtils.writeVarInt(forwarded, forwardingVersion);
ProtocolUtils.writeString(forwarded, address);