mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Hotfix/patch modern forwarding v2 (#727)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user