Corrected a bug in a PacketAdapter constructor discovered by Folipurba.

This commit is contained in:
Kristian S. Stangeland 2012-11-11 06:04:08 +01:00
parent 0b292af3b1
commit 5bb6f7649a

View File

@ -104,7 +104,7 @@ public abstract class PacketAdapter implements PacketListener {
* @param packets - the packet IDs the listener is looking for.
*/
public PacketAdapter(Plugin plugin, ConnectionSide connectionSide, GamePhase gamePhase, Integer... packets) {
this(plugin, connectionSide, ListenerPriority.NORMAL, GamePhase.PLAYING, packets);
this(plugin, connectionSide, ListenerPriority.NORMAL, gamePhase, packets);
}
/**