Skip to content

Commit

Permalink
Update protocol to v503
Browse files Browse the repository at this point in the history
Support 1.18.30
  • Loading branch information
Jasonzyt committed Apr 22, 2022
1 parent 494e3dd commit 0ceff22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Minecraft Bedrock Edition 假人客户端
* JavaScript API

## 支持的版本
* 理论上支持1.7.0到1.18.0之间的所有版本
* 理论上支持1.7.0到1.18.30之间的所有版本

## WebSocket API
* FakePlayer提供WebSocket API以供其他插件/程序与FakePlayer进行通信,目前支持的操作有添加/删除假人,获取假人列表等
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation 'com.nukkitx.protocol:bedrock-v486:2.9.5-SNAPSHOT'
implementation 'com.nukkitx.protocol:bedrock-v503:2.9.6-SNAPSHOT'
implementation 'com.google.code.gson:gson:2.8.7'
implementation 'org.yaml:snakeyaml:1.29'
implementation 'com.formdev:flatlaf:1.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.nukkitx.protocol.bedrock.v471.Bedrock_v471;
import com.nukkitx.protocol.bedrock.v475.Bedrock_v475;
import com.nukkitx.protocol.bedrock.v486.Bedrock_v486;
import com.nukkitx.protocol.bedrock.v503.Bedrock_v503;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -56,6 +57,7 @@ public class ProtocolVersionUtil {
registerPacketCodec(Bedrock_v471.V471_CODEC, 10, "blockpalette_1.17.41.01_v471.nbt");
registerPacketCodec(Bedrock_v475.V475_CODEC, 10, "blockpalette_1.18.2.03_v475.nbt");
registerPacketCodec(Bedrock_v486.V486_CODEC, 10, null);
registerPacketCodec(Bedrock_v503.V503_CODEC, 10, null);
codecMap = Collections.unmodifiableMap(codecMap);
rakNetVersionMap = Collections.unmodifiableMap(rakNetVersionMap);
blockPaletteMap = Collections.unmodifiableMap(blockPaletteMap);
Expand Down

0 comments on commit 0ceff22

Please sign in to comment.