Skip to content

Commit

Permalink
Update protocol to v534
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonzyt committed Jul 15, 2022
1 parent 0697648 commit c296e2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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.19.1之间的所有版本
* 理论上支持1.7.0到1.19.10之间的所有版本

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

group 'com.ddf.fakeplayer'
version '0.5.5-alpha'
version '0.5.6-alpha'

repositories {
maven {
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation 'com.nukkitx.protocol:bedrock-v527:2.9.8-SNAPSHOT'
implementation 'com.nukkitx.protocol:bedrock-v534:2.9.9-SNAPSHOT'
implementation 'com.google.code.gson:gson:2.8.7'
implementation 'org.yaml:snakeyaml:1.29'
implementation 'com.formdev:flatlaf:1.5'
Expand Down
4 changes: 2 additions & 2 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 更新内容
* 支持1.19.1版本(协议版本527)
* 支持1.19.10版本(协议版本534)

## Change Log
* Support 1.19.1 version (Protocol 527)
* Support MC v1.19.10 (Protocol 534)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.nukkitx.protocol.bedrock.v486.Bedrock_v486;
import com.nukkitx.protocol.bedrock.v503.Bedrock_v503;
import com.nukkitx.protocol.bedrock.v527.Bedrock_v527;
import com.nukkitx.protocol.bedrock.v534.Bedrock_v534;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -60,6 +61,7 @@ public class ProtocolVersionUtil {
registerPacketCodec(Bedrock_v486.V486_CODEC, 10, null);
registerPacketCodec(Bedrock_v503.V503_CODEC, 10, null);
registerPacketCodec(Bedrock_v527.V527_CODEC, 10, null);
registerPacketCodec(Bedrock_v534.V534_CODEC, 10, null);
codecMap = Collections.unmodifiableMap(codecMap);
rakNetVersionMap = Collections.unmodifiableMap(rakNetVersionMap);
blockPaletteMap = Collections.unmodifiableMap(blockPaletteMap);
Expand Down

0 comments on commit c296e2f

Please sign in to comment.