Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jpx3 committed Jan 6, 2020
1 parent 9af6c03 commit 295b08f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/de/jpx3/ips/connect/bukkit/PacketReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ private AbstractPacket constructPacketFrom(ByteArrayDataInput byteArrayDataInput
return constructPacketFrom(byteArrayDataInput, packetId);
}

private AbstractPacket constructPacketFrom(ByteArrayDataInput byteArrayDataInput, int packetId)
throws IllegalAccessException, InstantiationException {
private AbstractPacket constructPacketFrom(ByteArrayDataInput byteArrayDataInput,
int packetId
) throws IllegalAccessException, InstantiationException {
AbstractPacket packet = PacketRegister
.classOf(packetId)
.orElseThrow(IllegalStateException::new)
Expand All @@ -127,7 +128,7 @@ private ByteArrayDataInput newByteArrayDataInputFrom(byte[] byteArray) {

private boolean isMarkedAsIntaveChannel(String channelTag) {
return channelTag.equalsIgnoreCase(INCOMING_CHANNEL) ||
channelTag.equalsIgnoreCase(OUTGOING_CHANNEL);
channelTag.equalsIgnoreCase(OUTGOING_CHANNEL);
}

private boolean isUpstream(Connection connection) {
Expand Down

0 comments on commit 295b08f

Please sign in to comment.