diff --git a/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java b/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java index 4c94d4117..ad39cd125 100644 --- a/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java +++ b/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java @@ -51,8 +51,9 @@ public class ViaDecodeHandler extends ByteToMessageDecoder { && !(cause.getCause() instanceof ClosedChannelException)) { if (!(cause instanceof CancelException) && !(cause instanceof ClosedChannelException)) { - if (cause instanceof Exception) - throw (Exception) cause; + if (cause instanceof Exception){ + cause.printStackTrace(); + } } } } diff --git a/src/main/java/us/myles/ViaVersion/handlers/ViaEncodeHandler.java b/src/main/java/us/myles/ViaVersion/handlers/ViaEncodeHandler.java index a09aa26b3..4cc88c572 100644 --- a/src/main/java/us/myles/ViaVersion/handlers/ViaEncodeHandler.java +++ b/src/main/java/us/myles/ViaVersion/handlers/ViaEncodeHandler.java @@ -79,7 +79,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder { if (!(cause instanceof CancelException) && !(cause instanceof ClosedChannelException)) { if (cause instanceof Exception) - throw (Exception) cause; + cause.printStackTrace(); } } }