diff --git a/src/main/java/com/github/creeper123123321/viarift/platform/VRUserConnection.java b/src/main/java/com/github/creeper123123321/viarift/platform/VRUserConnection.java index c0c95bf..fc3d28b 100644 --- a/src/main/java/com/github/creeper123123321/viarift/platform/VRUserConnection.java +++ b/src/main/java/com/github/creeper123123321/viarift/platform/VRUserConnection.java @@ -52,18 +52,10 @@ public class VRUserConnection extends UserConnection { packet.release(); final Channel channel = this.getChannel(); if (currentThread) { - try { - PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); - } catch (Exception e) { - e.printStackTrace(); - } + PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); } else { channel.eventLoop().submit(() -> { - try { - PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); - } catch (Exception e) { - e.printStackTrace(); - } + PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); }); } } @@ -79,12 +71,7 @@ public class VRUserConnection extends UserConnection { copy.writeBytes(packet); packet.release(); final Channel channel = this.getChannel(); - try { - PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); - return channel.newSucceededFuture(); - } catch (Exception e) { - e.printStackTrace(); - return channel.newFailedFuture(e); - } + PipelineUtil.getPreviousContext("decoder", channel.pipeline()).fireChannelRead(copy); + return channel.newSucceededFuture(); } } diff --git a/src/main/java/com/github/creeper123123321/viarift/platform/VRViaAPI.java b/src/main/java/com/github/creeper123123321/viarift/platform/VRViaAPI.java index eb09c52..8f1c815 100644 --- a/src/main/java/com/github/creeper123123321/viarift/platform/VRViaAPI.java +++ b/src/main/java/com/github/creeper123123321/viarift/platform/VRViaAPI.java @@ -41,7 +41,7 @@ import java.util.UUID; public class VRViaAPI implements ViaAPI { @Override public int getPlayerVersion(Void o) { - throw new UnsupportedOperationException("WHAT??? A INSTANCE OF VOID???"); + throw new UnsupportedOperationException(); } @Override @@ -68,7 +68,7 @@ public class VRViaAPI implements ViaAPI { @Override public void sendRawPacket(Void o, ByteBuf byteBuf) throws IllegalArgumentException { - throw new UnsupportedOperationException("WHAT??? A INSTANCE OF VOID???"); + throw new UnsupportedOperationException(); } @Override