Don't try to find the isAsyncPacket method over and over again.

This commit is contained in:
Kristian S. Stangeland 2012-09-30 04:25:56 +02:00
parent 6063f437fd
commit e666d17dc2

View File

@ -256,7 +256,7 @@ public class AsyncMarker implements Serializable, Comparable<AsyncMarker> {
*/
public boolean isMinecraftAsync(PacketEvent event) throws FieldAccessException {
if (isMinecraftAsync == null) {
if (isMinecraftAsync == null && !alwaysSync) {
try {
isMinecraftAsync = FuzzyReflection.fromClass(Packet.class).getMethodByName("a_.*");
} catch (RuntimeException e) {