Archiviert
13
0

Reorder injection hooks.

We put the network manager hook to the bottom as it's the least
likely version to be compatible with other plugins.
Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-10 02:50:27 +02:00
Ursprung eb328c41e8
Commit 20792aa09a

Datei anzeigen

@ -61,13 +61,6 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok
* @author Kristian * @author Kristian
*/ */
public enum PlayerInjectHooks { public enum PlayerInjectHooks {
/**
* Override the packet queue lists in NetworkHandler.
* <p>
* Cannot intercept MapChunk packets.
*/
NETWORK_HANDLER_FIELDS,
/** /**
* Override the network handler object itself. Only works in 1.3. * Override the network handler object itself. Only works in 1.3.
* <p> * <p>
@ -75,6 +68,13 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok
*/ */
NETWORK_MANAGER_OBJECT, NETWORK_MANAGER_OBJECT,
/**
* Override the packet queue lists in NetworkHandler.
* <p>
* Cannot intercept MapChunk packets.
*/
NETWORK_HANDLER_FIELDS,
/** /**
* Override the server handler object. Versatile, but a tad slower. * Override the server handler object. Versatile, but a tad slower.
*/ */