3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-25 15:50:19 +01: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); ByteBuf forwarded = Unpooled.buffer(2048);
try { try {
int forwardingVersion = version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0 && playerKey != null 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.writeVarInt(forwarded, forwardingVersion);
ProtocolUtils.writeString(forwarded, address); ProtocolUtils.writeString(forwarded, address);