From 78bcaeda7efa0be59c2e764f23565ed80d674fd2 Mon Sep 17 00:00:00 2001 From: bundabrg Date: Thu, 24 Sep 2020 14:47:51 +0800 Subject: [PATCH] Bump to Reversion v1.0.15 * Add server support for Geyser Bedrock v1.16.100.56 (beta) * Translate PotionMixData as well now * Provide the translation chain used when Geyser is showing debug logs --- README.md | 1 + docs/index.md | 1 + .../BedrockEditionUpstreamPacketHandler.java | 12 ++++++++++++ pom.xml | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10ce09a..2ab1926 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ allow any supported version to connect to any supported Geyser. ## Server Versions Support * Geyser Bedrock v1.16.2 +* Geyser Bedrock v1.16.110.56 (beta) ## Quick Start diff --git a/docs/index.md b/docs/index.md index 1a43f04..fd0a019 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,6 +23,7 @@ allow any supported version to connect to any supported Geyser. ## Server Versions Support * Geyser Bedrock v1.16.2 +* Geyser Bedrock v1.16.110.56 (beta) ## Quick Start diff --git a/geyser-reversion/src/main/java/au/com/grieve/geyser/reversion/editions/bedrock/handlers/BedrockEditionUpstreamPacketHandler.java b/geyser-reversion/src/main/java/au/com/grieve/geyser/reversion/editions/bedrock/handlers/BedrockEditionUpstreamPacketHandler.java index ce89199..010b16a 100644 --- a/geyser-reversion/src/main/java/au/com/grieve/geyser/reversion/editions/bedrock/handlers/BedrockEditionUpstreamPacketHandler.java +++ b/geyser-reversion/src/main/java/au/com/grieve/geyser/reversion/editions/bedrock/handlers/BedrockEditionUpstreamPacketHandler.java @@ -24,8 +24,10 @@ package au.com.grieve.geyser.reversion.editions.bedrock.handlers; +import au.com.grieve.geyser.reversion.GeyserReversionExtension; import au.com.grieve.geyser.reversion.server.GeyserServerSession; import au.com.grieve.reversion.api.LoginData; +import au.com.grieve.reversion.api.Translator; import au.com.grieve.reversion.editions.bedrock.BedrockReversionSession; import au.com.grieve.reversion.exceptions.LoginException; import au.com.grieve.reversion.shaded.nukkitx.protocol.bedrock.BedrockPacket; @@ -232,6 +234,16 @@ public boolean handle(LoginPacket loginPacket) { } } + // Provide some debug about our translation chain + Translator translator = serverSession.getTranslator(); + if (translator != null) { + GeyserReversionExtension.getInstance().getLogger().debug("Translator Chain:"); + while (translator != null) { + GeyserReversionExtension.getInstance().getLogger().debug(" " + translator); + translator = translator.getDownstreamTranslator(); + } + } + // Encrypt Connection serverSession.enableEncryption(serverSession.getLoginData().getEncryptionKey()); diff --git a/pom.xml b/pom.xml index a54f06c..643bb44 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ 1.8 1.8 UTF-8 - 1.0.14 + 1.0.15