fix UpdateChecker
This commit is contained in:
parent
82f30b8f07
commit
a56459b69e
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ public class UpdateChecker extends BukkitRunnable {
|
|||
int currentPart = Integer.parseInt(currentParts[i]);
|
||||
int newPart = Integer.parseInt(newParts[i]);
|
||||
if (newPart > currentPart) return Status.UPDATE_NEEDED;
|
||||
if (newPart < currentPart) return Status.LATEST_VERSION;
|
||||
}
|
||||
if (newType.ordinal() > currentType.ordinal()) return Status.UPDATE_NEEDED;
|
||||
if (newType == currentType) {
|
||||
|
|
Loading…
Reference in a new issue