From b0dcde449ca59535c341b3c93b6ec3f5e39606c0 Mon Sep 17 00:00:00 2001 From: Dogboy21 Date: Wed, 15 Sep 2021 20:25:39 +0200 Subject: [PATCH] Fixed checkstyle error in CI build --- protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java index 07dcfebd98..9f1b0a990a 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java @@ -530,7 +530,7 @@ public final DefinedPacket createPacket(int id, int version) throw new BadPacketException( "Packet with id " + id + " outside of range" ); } - Supplier constructor = protocolData.packetConstructors.get(id); + Supplier constructor = protocolData.packetConstructors.get( id ); return ( constructor == null ) ? null : constructor.get(); } @@ -561,7 +561,7 @@ private void registerPacket(Class 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 ); } }