Use the cached constructor when instantiating a packet.
This commit is contained in:
		| @@ -138,7 +138,7 @@ public enum Protocol | |||||||
|  |  | ||||||
|             try |             try | ||||||
|             { |             { | ||||||
|                 return packetClasses[id].newInstance(); |                 return packetConstructors[id].newInstance(); | ||||||
|             } catch ( ReflectiveOperationException ex ) |             } catch ( ReflectiveOperationException ex ) | ||||||
|             { |             { | ||||||
|                 throw new BadPacketException( "Could not construct packet with id " + id, ex ); |                 throw new BadPacketException( "Could not construct packet with id " + id, ex ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 portalBlock
					portalBlock