Skip to content

Commit

Permalink
Update protocol to v545
Browse files Browse the repository at this point in the history
* Bump version to 0.5.8
  • Loading branch information
Jasonzyt committed Sep 9, 2022
1 parent f759275 commit aca0f4f
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 @@ -53,7 +53,7 @@ Minecraft Bedrock Edition 假人客户端
* JavaScript API

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

## 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.7-alpha'
version '0.5.8-alpha'

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

dependencies {
implementation 'com.nukkitx.protocol:bedrock-v544:2.9.11-SNAPSHOT'
implementation 'com.nukkitx.protocol:bedrock-v545:2.9.11-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.20版本(协议版本544)
* 支持1.19.21-22版本(协议版本545)

## Change Log
* Support MC v1.19.20 (Protocol 544)
* Support MC v1.19.21-22 (Protocol 545)
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.nukkitx.protocol.bedrock.v527.Bedrock_v527;
import com.nukkitx.protocol.bedrock.v534.Bedrock_v534;
import com.nukkitx.protocol.bedrock.v544.Bedrock_v544;
import com.nukkitx.protocol.bedrock.v545.Bedrock_v545;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -64,6 +65,7 @@ public class ProtocolVersionUtil {
registerPacketCodec(Bedrock_v527.V527_CODEC, 10, null);
registerPacketCodec(Bedrock_v534.V534_CODEC, 10, null);
registerPacketCodec(Bedrock_v544.V544_CODEC, 10, null);
registerPacketCodec(Bedrock_v545.V545_CODEC, 10, null);
codecMap = Collections.unmodifiableMap(codecMap);
rakNetVersionMap = Collections.unmodifiableMap(rakNetVersionMap);
blockPaletteMap = Collections.unmodifiableMap(blockPaletteMap);
Expand Down

0 comments on commit aca0f4f

Please sign in to comment.