Skip to content

Commit

Permalink
Added support for Bedrock 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Jun 21, 2024
1 parent d100b1b commit a3903ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
gson = "2.10.1"
protocol = "3.0.0.Beta2-20240423.201358-2"
raknet = "1.0.0.CR1-20240330.103819-16"
netty = "4.1.80.Final"
protocol = "3.0.0.Beta2-20240616.144648-10"
raknet = "1.0.0.CR3-20240416.144209-1"
netty = "4.1.110.Final"
fastutil = "8.5.2"
mcprotocollib = "1.20.4-1"
adventure-text = "4.15.0-20231207.074016-23" # Match version to MCPL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ public void sendStartGame() {
startGamePacket.setRewindHistorySize(0);
startGamePacket.setServerAuthoritativeBlockBreaking(false);

startGamePacket.setServerId("");
startGamePacket.setWorldId("");
startGamePacket.setScenarioId("");

session.sendPacket(startGamePacket);

// Send an empty chunk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.cloudburstmc.protocol.bedrock.codec.v649.Bedrock_v649;
import org.cloudburstmc.protocol.bedrock.codec.v662.Bedrock_v662;
import org.cloudburstmc.protocol.bedrock.codec.v671.Bedrock_v671;
import org.cloudburstmc.protocol.bedrock.codec.v685.Bedrock_v685;

/**
* Contains information about the supported Bedrock protocols in GlobalLinkServer.
Expand All @@ -45,7 +46,7 @@ public class BedrockVersionUtils {
* Default Bedrock codec that should act as a fallback. Should represent the latest available
* release of the game that GlobalLinkServer supports.
*/
public static final BedrockCodec LATEST_CODEC = Bedrock_v671.CODEC;
public static final BedrockCodec LATEST_CODEC = Bedrock_v685.CODEC;

/**
* A list of all supported Bedrock versions that can join GlobalLinkServer
Expand All @@ -60,6 +61,7 @@ public class BedrockVersionUtils {
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v630.CODEC);
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v649.CODEC);
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v662.CODEC);
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v671.CODEC);
SUPPORTED_BEDROCK_CODECS.add(LATEST_CODEC);
}

Expand Down

0 comments on commit a3903ad

Please sign in to comment.