Set the correct option when calling optionAsync().

This commit is contained in:
Kristian S. Stangeland 2013-12-14 17:49:51 +01:00
parent f41efdec60
commit 88a2385b1e

View File

@ -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.
* <p>
* 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);
}
/**