From 5eb8bec76e26ae8c48d0c57d5c80a562071f25be Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Fri, 7 Apr 2023 00:17:20 -0400 Subject: [PATCH] Commands work again I guess --- .../main/java/org/geysermc/geyser/session/GeyserSession.java | 5 ----- .../translator/protocol/java/JavaCommandsTranslator.java | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java index 0e3cf5f17..786accb6f 100644 --- a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java +++ b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java @@ -33,7 +33,6 @@ import com.github.steveice10.mc.auth.service.MojangAuthenticationService; import com.github.steveice10.mc.auth.service.MsaAuthenticationService; import com.github.steveice10.mc.protocol.MinecraftConstants; import com.github.steveice10.mc.protocol.MinecraftProtocol; -import com.github.steveice10.mc.protocol.codec.MinecraftCodecHelper; import com.github.steveice10.mc.protocol.data.ProtocolState; import com.github.steveice10.mc.protocol.data.UnexpectedEncryptionException; import com.github.steveice10.mc.protocol.data.game.entity.metadata.Pose; @@ -1857,10 +1856,6 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource { }; } - public MinecraftCodecHelper getCodecHelper() { - return (MinecraftCodecHelper) this.downstream.getCodecHelper(); - } - @Override public String bedrockUsername() { return authData.name(); diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCommandsTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCommandsTranslator.java index d1a2e94b2..679d458d4 100644 --- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCommandsTranslator.java +++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCommandsTranslator.java @@ -106,7 +106,7 @@ public class JavaCommandsTranslator extends PacketTranslator