Skip to content

Commit

Permalink
Add support for 1.21.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Oct 1, 2024
1 parent 1c11590 commit 36674c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
gson = "2.10.1"
protocol = "3.0.0.Beta3-20240814.133201-7"
protocol = "3.0.0.Beta5-20240916.181041-6"
netty = "4.1.110.Final"
fastutil = "8.5.2"
mcprotocollib = "86903ec" # Revert from jitpack after release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
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 org.cloudburstmc.protocol.bedrock.codec.v729.Bedrock_v729;

/**
* Contains information about the supported Bedrock protocols in GlobalLinkServer.
Expand All @@ -58,6 +59,7 @@ public class BedrockVersionUtils {
add(Bedrock_v685.CODEC);
add(Bedrock_v686.CODEC);
add(Bedrock_v712.CODEC);
add(Bedrock_v729.CODEC);
}};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public int createTempLink(Player player) {
private int createCode() {
int code = -1;
while (code == -1) {
code = random.nextInt(9999) + 1;
code = random.nextInt(9999 + 1); // the bound is exclusive

TempLink link = tempLinks.get(code);
if (isLinkValid(link)) {
Expand Down

0 comments on commit 36674c6

Please sign in to comment.