#3658: Minecraft 1.20.5-rc1 support
This commit is contained in:
parent
1be25b6c74
commit
67c65e0464
@ -45,7 +45,7 @@ public class ProtocolConstants
|
||||
public static final int MINECRAFT_1_20 = 763;
|
||||
public static final int MINECRAFT_1_20_2 = 764;
|
||||
public static final int MINECRAFT_1_20_3 = 765;
|
||||
public static final int MINECRAFT_1_20_5 = 1073742011;
|
||||
public static final int MINECRAFT_1_20_5 = 1073742013;
|
||||
public static final List<String> SUPPORTED_VERSIONS;
|
||||
public static final List<Integer> SUPPORTED_VERSION_IDS;
|
||||
|
||||
|
@ -37,6 +37,11 @@ public class LoginSuccess extends DefinedPacket
|
||||
{
|
||||
properties = readProperties( buf );
|
||||
}
|
||||
if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 )
|
||||
{
|
||||
// Whether the client should disconnect on its own if it receives invalid data from the server
|
||||
buf.readBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -54,6 +59,12 @@ public class LoginSuccess extends DefinedPacket
|
||||
{
|
||||
writeProperties( properties, buf );
|
||||
}
|
||||
if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 )
|
||||
{
|
||||
// Whether the client should disconnect on its own if it receives invalid data from the server
|
||||
// Vanilla sends true so we also send true
|
||||
buf.writeBoolean( true );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user