diff --git a/README.md b/README.md index b2018ae..845c3e2 100644 --- a/README.md +++ b/README.md @@ -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进行通信,目前支持的操作有添加/删除假人,获取假人列表等 diff --git a/build.gradle b/build.gradle index 09df631..024ed70 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/main/java/com/ddf/fakeplayer/util/ProtocolVersionUtil.java b/src/main/java/com/ddf/fakeplayer/util/ProtocolVersionUtil.java index a9c3448..e1e2387 100644 --- a/src/main/java/com/ddf/fakeplayer/util/ProtocolVersionUtil.java +++ b/src/main/java/com/ddf/fakeplayer/util/ProtocolVersionUtil.java @@ -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; @@ -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);