diff --git a/pom.xml b/pom.xml index e07e4fd..640b2a4 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 net.h31ix.anticheat AntiCheat - 1.3.6-DEV + 1.3.6 AntiCheat http://H31IX.NET/ @@ -42,7 +42,7 @@ org.bukkit bukkit - 1.3.1-R1.0 + 1.3.2-R0.1 jar compile diff --git a/src/main/java/net/h31ix/anticheat/update/Updater.java b/src/main/java/net/h31ix/anticheat/update/Updater.java index 526ff50..dd908cd 100644 --- a/src/main/java/net/h31ix/anticheat/update/Updater.java +++ b/src/main/java/net/h31ix/anticheat/update/Updater.java @@ -506,7 +506,7 @@ public class Updater if(title.split("v").length == 2) { String remoteVersion = title.split("v")[1].split(" ")[0]; // Get the newest file's version number - if(hasTag(version) || version.equalsIgnoreCase(remoteVersion)) + if(hasTag(version, remoteVersion) || version.equalsIgnoreCase(remoteVersion)) { // We already have the latest version, or this build is tagged for no-update result = Updater.UpdateResult.NO_UPDATE; @@ -529,13 +529,21 @@ public class Updater /** * Evaluate whether the version number is marked showing that it should not be updated by this program */ - private boolean hasTag(String version) + private boolean hasTag(String version, String remoteVersion) { for(String string : noUpdateTag) { if(version.contains(string)) { - return true; + if(version.replaceAll(string, "").equals(remoteVersion)) + { + // The build has a tag, but the version was upgraded to release so we should do an update anyway + return false; + } + else + { + return true; + } } } return false;