Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-25 07:40:13 +01:00
Hotfix/patch modern forwarding v2 (#727)
Dieser Commit ist enthalten in:
Ursprung
d97ed956a7
Commit
28b6f6dcef
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren