mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 11:07:44 +01:00
Fix the update checker
This commit is contained in:
parent
b1458840e7
commit
0196fd8447
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user