mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-02-15 03:52:23 +01:00
Don't try to find the isAsyncPacket method over and over again.
This commit is contained in:
parent
6063f437fd
commit
e666d17dc2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user