This commit is contained in:
Chayapak 2023-09-10 13:09:28 +07:00
parent d194d6baa2
commit 44dffc37a2

View file

@ -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)