Skip to content

Commit

Permalink
Merge pull request #192 from Camotoy/feature/1.17
Browse files Browse the repository at this point in the history
1.17 support
  • Loading branch information
Pugmatt authored Jun 2, 2021
2 parents fd8e8b9 + aa8c7dc commit c01861c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions serverlist-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
</dependency>
<dependency>
<groupId>com.nukkitx.protocol</groupId>
<artifactId>bedrock-v431</artifactId>
<version>2.7.0-SNAPSHOT</version>
<artifactId>bedrock-v440</artifactId>
<version>2.8.0-SNAPSHOT</version>
<scope>compile</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public void joinGame() {
startGamePacket.setCurrentTick(0);
startGamePacket.setEnchantmentSeed(0);
startGamePacket.setMultiplayerCorrelationId("");
startGamePacket.setServerEngine("");

startGamePacket.setBlockPalette(BedrockConnect.paletteManager.CACHED_PALLETE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.nukkitx.protocol.bedrock.v422.Bedrock_v422;
import com.nukkitx.protocol.bedrock.v428.Bedrock_v428;
import com.nukkitx.protocol.bedrock.v431.Bedrock_v431;
import com.nukkitx.protocol.bedrock.v440.Bedrock_v440;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -15,7 +16,7 @@ public class BedrockProtocol {
/**
* Latest available version
*/
public static final BedrockPacketCodec DEFAULT_BEDROCK_CODEC = Bedrock_v428.V428_CODEC;
public static final BedrockPacketCodec DEFAULT_BEDROCK_CODEC = Bedrock_v431.V431_CODEC;

/**
* A list of all supported Bedrock versions that can join BedrockConnect
Expand All @@ -29,8 +30,9 @@ public class BedrockProtocol {
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v422.V422_CODEC.toBuilder()
.minecraftVersion("1.16.200/1.16.201")
.build());
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v428.V428_CODEC);
SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC);
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v431.V431_CODEC);
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v440.V440_CODEC);
}

/**
Expand Down

0 comments on commit c01861c

Please sign in to comment.