Fix the update checker

This commit is contained in:
TfT_02 2013-11-02 21:49:20 +01:00
parent b1458840e7
commit 0196fd8447

View File

@ -441,7 +441,7 @@ public class Updater {
} }
// Check release vs. beta & dev // 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; return true;
} }
@ -465,11 +465,14 @@ public class Updater {
return false; 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?"); plugin.getLogger().warning("Could not get information about this mcMMO version; perhaps you are running a custom one?");
result = UpdateResult.FAIL_NOVERSION; result = UpdateResult.FAIL_NOVERSION;
return false; return false;
} }
result = UpdateResult.NO_UPDATE;
return false;
} }
return true; return true;