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)