Skip to content

Commit

Permalink
Update support version 1.21.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugmatt committed Dec 3, 2024
1 parent 1c94ddd commit d753ec1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/assets/supportedVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.44.01
1.21.50.10
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.51";
public static String release = "1.52";

public static HashMap<String, String> featuredServerIps;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ public PacketSignal handle(LoginPacket packet) {
ResourcePacksInfoPacket resourcePacksInfo = new ResourcePacksInfoPacket();
resourcePacksInfo.setForcedToAccept(false);
resourcePacksInfo.setScriptingEnabled(false);
resourcePacksInfo.setWorldTemplateId(UUID.randomUUID());
resourcePacksInfo.setWorldTemplateVersion("*");
session.sendPacket(resourcePacksInfo);
} catch (Exception e) {
session.disconnect("disconnectionScreen.internalError.cantConnect");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.cloudburstmc.protocol.bedrock.codec.v712.Bedrock_v712;
import org.cloudburstmc.protocol.bedrock.codec.v729.Bedrock_v729;
import org.cloudburstmc.protocol.bedrock.codec.v748.Bedrock_v748;
import org.cloudburstmc.protocol.bedrock.codec.v766.Bedrock_v766;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -34,8 +35,8 @@ public class BedrockProtocol {
/**
* Latest available version
*/
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = Bedrock_v748.CODEC.toBuilder()
.minecraftVersion("1.21.40")
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = Bedrock_v766.CODEC.toBuilder()
.minecraftVersion("1.21.50")
.build();


Expand Down Expand Up @@ -94,6 +95,9 @@ public class BedrockProtocol {
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v729.CODEC.toBuilder()
.minecraftVersion("1.21.30/1.21.31")
.build());
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v748.CODEC.toBuilder()
.minecraftVersion("1.21.40 - 1.21.44")
.build());
SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC);
}

Expand Down

0 comments on commit d753ec1

Please sign in to comment.