Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Fixed checkstyle error in CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboy21 authored Sep 15, 2021
1 parent d5b3508 commit b0dcde4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public final DefinedPacket createPacket(int id, int version)
throw new BadPacketException( "Packet with id " + id + " outside of range" );
}

Supplier<? extends DefinedPacket> constructor = protocolData.packetConstructors.get(id);
Supplier<? extends DefinedPacket> constructor = protocolData.packetConstructors.get( id );
return ( constructor == null ) ? null : constructor.get();
}

Expand Down Expand Up @@ -561,7 +561,7 @@ private void registerPacket(Class<? extends DefinedPacket> packetClass, Supplier

ProtocolData data = protocols.get( protocol );
data.packetMap.put( packetClass, mapping.packetID );
data.packetConstructors.put(mapping.packetID, constructor);
data.packetConstructors.put( mapping.packetID, constructor );
}
}

Expand Down

0 comments on commit b0dcde4

Please sign in to comment.