Skip to content

Commit

Permalink
Update support version 1.21.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugmatt committed Aug 13, 2024
1 parent 7ff5c58 commit 8037e6e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/assets/supportedVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.3.01
1.21.20.03
2 changes: 1 addition & 1 deletion serverlist-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<dependency>
<groupId>org.cloudburstmc.protocol</groupId>
<artifactId>bedrock-connection</artifactId>
<version>3.0.0.Beta2-SNAPSHOT</version>
<version>3.0.0.Beta3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class BedrockConnect {

public static int globalPacketLimit = RakConstants.DEFAULT_GLOBAL_PACKET_LIMIT;

public static String release = "1.48";
public static String release = "1.49";

public static HashMap<String, String> featuredServerIps;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
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;
import org.cloudburstmc.protocol.bedrock.codec.v686.Bedrock_v686;
import org.cloudburstmc.protocol.bedrock.codec.v712.Bedrock_v712;

import java.util.ArrayList;
import java.util.List;

// Referenced from: https://github.com/GeyserMC/Geyser/blob/master/connector/src/main/java/org/geysermc/connector/network/BedrockProtocol.java

public class BedrockProtocol {
private static final BedrockCodec BEDROCK_V686 = Bedrock_v685.CODEC.toBuilder()
.protocolVersion(686)
.minecraftVersion("1.21.2")
.build();

/**
* Latest available version
*/
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = BEDROCK_V686;
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = Bedrock_v712.CODEC.toBuilder()
.minecraftVersion("1.21.20")
.build();


/**
Expand Down Expand Up @@ -83,6 +83,9 @@ public class BedrockProtocol {
.build());
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v685.CODEC.toBuilder()
.build());
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v686.CODEC.toBuilder()
.minecraftVersion("1.21.2/1.21.3")
.build());
SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC);
}

Expand Down

0 comments on commit 8037e6e

Please sign in to comment.