From 88a2385b1e53bc3692ceb375211ee57114f3ee9a Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sat, 14 Dec 2013 17:49:51 +0100 Subject: [PATCH] Set the correct option when calling optionAsync(). --- .../java/com/comphenix/protocol/events/PacketAdapter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketAdapter.java b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketAdapter.java index 26639887..95f3edcf 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketAdapter.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketAdapter.java @@ -547,11 +547,13 @@ public abstract class PacketAdapter implements PacketListener { } /** - * Set the listener option to {@link ListenerOptions#ASYNC}, causing ProtocolLib to ignore automatic game phase detection. + * Set the listener option to {@link ListenerOptions#ASYNC}, indicating that our listener is thread safe. + *

+ * This allows ProtocolLib to perform certain optimizations. * @return This builder, for chaining. */ public AdapterParameteters optionAsync() { - return addOption(ListenerOptions.DISABLE_GAMEPHASE_DETECTION); + return addOption(ListenerOptions.ASYNC); } /**