From 44dffc37a25072cc4ee4026bc8e6848c83f2e954 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 10 Sep 2023 13:09:28 +0700 Subject: [PATCH] F --- .../chipmunk/chipmunkmod/mixin/ClientConnectionMixin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientConnectionMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientConnectionMixin.java index 854af0e..8c03bf9 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientConnectionMixin.java +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientConnectionMixin.java @@ -37,10 +37,8 @@ public class ClientConnectionMixin { @Inject(method = "exceptionCaught", at = @At("HEAD"), cancellable = true) private void exceptionCaught (ChannelHandlerContext context, Throwable ex, CallbackInfo ci) { - if (ex instanceof DecoderException) { - ci.cancel(); - ex.printStackTrace(); - } + ci.cancel(); + ex.printStackTrace(); } @Inject(method = "handlePacket", at = @At("HEAD"), cancellable = true)