From 174d2974450cdba8c384048a0fa1b44b09dedf52 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 2 Jun 2013 16:10:37 +1200 Subject: [PATCH] Fixed update checker, changed listener prioty to highest --- src/me/libraryaddict/disguise/LibsDisguises.java | 2 +- src/me/libraryaddict/disguise/UpdateChecker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index c0748735..7835f23d 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -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, diff --git a/src/me/libraryaddict/disguise/UpdateChecker.java b/src/me/libraryaddict/disguise/UpdateChecker.java index 30cf1a97..17c7a4d1 100644 --- a/src/me/libraryaddict/disguise/UpdateChecker.java +++ b/src/me/libraryaddict/disguise/UpdateChecker.java @@ -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; }