Skip to content

Commit

Permalink
Update protocol to v544
Browse files Browse the repository at this point in the history
* Bump version to 0.5.7
  • Loading branch information
Jasonzyt committed Aug 14, 2022
1 parent cf59fa3 commit f759275
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.10之间的所有版本
* 理论上支持1.7.0到1.19.20之间的所有版本

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

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

dependencies {
implementation 'com.nukkitx.protocol:bedrock-v534:2.9.9-SNAPSHOT'
implementation 'com.nukkitx.protocol:bedrock-v544: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.10版本(协议版本534)
* 支持1.19.20版本(协议版本544)

## Change Log
* Support MC v1.19.10 (Protocol 534)
* Support MC v1.19.20 (Protocol 544)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
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 com.nukkitx.protocol.bedrock.v544.Bedrock_v544;

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

0 comments on commit f759275

Please sign in to comment.