Fixed update checker, changed listener prioty to highest

This commit is contained in:
Andrew 2013-06-02 16:10:37 +12:00
parent 3e2f95f68b
commit 174d297445
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class LibsDisguises extends JavaPlugin implements Listener {
DisguiseAPI.init(this);
DisguiseAPI.enableSounds(true);
final ProtocolManager manager = ProtocolLibrary.getProtocolManager();
manager.addPacketListener(new PacketAdapter(this, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL,
manager.addPacketListener(new PacketAdapter(this, ConnectionSide.SERVER_SIDE, ListenerPriority.HIGHEST,
Packets.Server.NAMED_ENTITY_SPAWN, Packets.Server.ENTITY_METADATA, Packets.Server.ARM_ANIMATION,
Packets.Server.REL_ENTITY_MOVE_LOOK, Packets.Server.ENTITY_LOOK, Packets.Server.ENTITY_TELEPORT,
Packets.Server.ADD_EXP_ORB, Packets.Server.VEHICLE_SPAWN, Packets.Server.MOB_SPAWN,

View File

@ -17,7 +17,7 @@ public class UpdateChecker {
}
public void checkUpdate(String currentVersion) throws Exception {
String version = getVersion("98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4", 55);
String version = getVersion("98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4", 81);
if (checkHigher(currentVersion, version))
latestVersion = version;
}