geforkt von Mirrors/Velocity
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);
|
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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren