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 9671b3a3..eaf2d3c6 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 @@ -138,7 +138,7 @@ public enum Protocol try { - return packetClasses[id].newInstance(); + return packetConstructors[id].newInstance(); } catch ( ReflectiveOperationException ex ) { throw new BadPacketException( "Could not construct packet with id " + id, ex );