From 378aa6ed99d5c8bdc9bb9ef8329cba2511b90333 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Tue, 7 Jun 2022 00:31:29 +0200 Subject: [PATCH] Updated changes for latest Geyser version --- .../floodgate/pluginmessage/PluginMessageChannels.java | 5 ++++- .../protocol/java/JavaCustomPayloadTranslator.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java b/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java index 37c5d4015..f06c0f9da 100644 --- a/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java +++ b/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java @@ -31,8 +31,11 @@ public final class PluginMessageChannels { public static final String SKIN = "floodgate:skin"; public static final String FORM = "floodgate:form"; public static final String TRANSFER = "floodgate:transfer"; + public static final String PACKET = "floodgate:packet"; - private static final byte[] FLOODGATE_REGISTER_DATA = String.join("\0", SKIN, FORM, TRANSFER).getBytes(Charsets.UTF_8); + private static final byte[] FLOODGATE_REGISTER_DATA = + String.join("\0", SKIN, FORM, TRANSFER, PACKET) + .getBytes(Charsets.UTF_8); /** * Get the prebuilt register data as a byte array diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java index 32c1f747f..13ace5e23 100644 --- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java +++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java @@ -103,7 +103,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator