From 581468331af601c240d47848f1d90c1434572390 Mon Sep 17 00:00:00 2001
From: Kazuk <46299532+Kazzuk@users.noreply.github.com>
Date: Tue, 29 Nov 2022 20:48:09 +0000
Subject: [PATCH] Add 1.19.50 support
---
pom.xml | 4 ++--
src/main/java/com/nukkitx/proxypass/ProxyPass.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 35609a4..788dab0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,8 +55,8 @@
com.nukkitx.protocol
- bedrock-v557
- 2.9.13-SNAPSHOT
+ bedrock-v560
+ 2.9.15-SNAPSHOT
compile
diff --git a/src/main/java/com/nukkitx/proxypass/ProxyPass.java b/src/main/java/com/nukkitx/proxypass/ProxyPass.java
index a972463..64c4df1 100644
--- a/src/main/java/com/nukkitx/proxypass/ProxyPass.java
+++ b/src/main/java/com/nukkitx/proxypass/ProxyPass.java
@@ -13,7 +13,7 @@
import com.nukkitx.protocol.bedrock.BedrockClient;
import com.nukkitx.protocol.bedrock.BedrockPacketCodec;
import com.nukkitx.protocol.bedrock.BedrockServer;
-import com.nukkitx.protocol.bedrock.v557.Bedrock_v557;
+import com.nukkitx.protocol.bedrock.v560.Bedrock_v560;
import com.nukkitx.proxypass.network.ProxyBedrockEventHandler;
import io.netty.util.ResourceLeakDetector;
import lombok.AccessLevel;
@@ -37,7 +37,7 @@ public class ProxyPass {
public static final ObjectMapper JSON_MAPPER = new ObjectMapper().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
public static final YAMLMapper YAML_MAPPER = (YAMLMapper) new YAMLMapper().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
public static final String MINECRAFT_VERSION;
- public static final BedrockPacketCodec CODEC = Bedrock_v557.V557_CODEC;
+ public static final BedrockPacketCodec CODEC = Bedrock_v560.V560_CODEC;
public static final int PROTOCOL_VERSION = CODEC.getProtocolVersion();
private static final DefaultPrettyPrinter PRETTY_PRINTER = new DefaultPrettyPrinter();
public static Map legacyIdMap = new HashMap<>();