fix UpdateChecker

This commit is contained in:
D3v1s0m 2024-04-30 10:56:01 +05:30 committed by bridge
parent 82f30b8f07
commit a56459b69e

@ -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) {