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

View file

@ -37,11 +37,9 @@ 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();
}
}
@Inject(method = "handlePacket", at = @At("HEAD"), cancellable = true)
private static void handlePacket (Packet<?> packet, PacketListener _listener, CallbackInfo ci) {