From e666d17dc2aa301a26d553436e0fff98db598879 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sun, 30 Sep 2012 04:25:56 +0200 Subject: [PATCH] Don't try to find the isAsyncPacket method over and over again. --- ProtocolLib/src/com/comphenix/protocol/async/AsyncMarker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProtocolLib/src/com/comphenix/protocol/async/AsyncMarker.java b/ProtocolLib/src/com/comphenix/protocol/async/AsyncMarker.java index be543e9d..3f063eb8 100644 --- a/ProtocolLib/src/com/comphenix/protocol/async/AsyncMarker.java +++ b/ProtocolLib/src/com/comphenix/protocol/async/AsyncMarker.java @@ -256,7 +256,7 @@ public class AsyncMarker implements Serializable, Comparable { */ 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) {