From 0196fd84471935e460db7c4298427413d012d6d5 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 2 Nov 2013 21:49:20 +0100 Subject: [PATCH] Fix the update checker --- .../java/net/gravitydevelopment/updater/mcmmo/Updater.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/gravitydevelopment/updater/mcmmo/Updater.java b/src/main/java/net/gravitydevelopment/updater/mcmmo/Updater.java index 7f0955616..fd27a08ce 100644 --- a/src/main/java/net/gravitydevelopment/updater/mcmmo/Updater.java +++ b/src/main/java/net/gravitydevelopment/updater/mcmmo/Updater.java @@ -441,7 +441,7 @@ public class Updater { } // Check release vs. beta & dev - if (newTokens.length == 0 && oldTokens.length == 2 && oldVersion == newVersion) { + if (newTokens.length == 1 && oldTokens.length == 3 && oldVersion == newVersion) { return true; } @@ -465,11 +465,14 @@ public class Updater { return false; } - if (oldTokens.length == 2 && !version.contains("beta") && !version.contains("dev")) { + if (oldTokens.length == 3 && !version.contains("beta") && !version.contains("dev")) { plugin.getLogger().warning("Could not get information about this mcMMO version; perhaps you are running a custom one?"); result = UpdateResult.FAIL_NOVERSION; return false; } + + result = UpdateResult.NO_UPDATE; + return false; } return true;