Enable RakNet compatibility mode

This commit is contained in:
RaphiMC 2024-07-24 16:16:05 +02:00
parent be5650d511
commit 4aa4d8c83c
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -138,6 +138,8 @@ public class ProtocolTranslator {
if (serverVersion.equals(BedrockProtocolVersion.bedrockLatest)) {
channel.config().setOption(RakChannelOption.RAK_PROTOCOL_VERSION, ProtocolConstants.BEDROCK_RAKNET_PROTOCOL_VERSION);
channel.config().setOption(RakChannelOption.RAK_COMPATIBILITY_MODE, true);
channel.config().setOption(RakChannelOption.RAK_CLIENT_INTERNAL_ADDRESSES, 20);
channel.config().setOption(RakChannelOption.RAK_CONNECT_TIMEOUT, 4_000L);
channel.config().setOption(RakChannelOption.RAK_SESSION_TIMEOUT, 30_000L);
channel.config().setOption(RakChannelOption.RAK_GUID, ThreadLocalRandom.current().nextLong());