mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +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
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user