diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/viaversion/MixinProtocol1_20_3To1_20_5.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/viaversion/MixinProtocol1_20_3To1_20_5.java index 63f844d1..91df9f06 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/viaversion/MixinProtocol1_20_3To1_20_5.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/viaversion/MixinProtocol1_20_3To1_20_5.java @@ -48,11 +48,11 @@ public abstract class MixinProtocol1_20_3To1_20_5 extends AbstractProtocol {}, true); // If the client for whatever reason sends an unsigned command, map to signed by calling game code: - registerServerbound(ServerboundPackets1_20_5.CHAT_COMMAND, wrapper -> { + registerServerbound(ServerboundPackets1_20_5.CHAT_COMMAND, ServerboundPackets1_20_3.CHAT_COMMAND, wrapper -> { final String command = wrapper.read(Types.STRING); wrapper.cancel(); MinecraftClient.getInstance().getNetworkHandler().sendChatCommand(command); // TODO sync to correct thread? - }); + }, true); // Don't cancel any packets we receive. registerServerbound(ServerboundPackets1_20_5.CHAT_ACK, ServerboundPackets1_20_3.CHAT_ACK, wrapper -> {}, true);