fix UpdateChecker

This commit is contained in:
D3v1s0m 2024-04-30 10:56:01 +05:30
parent 57e11cb186
commit 9e13f754bc
No known key found for this signature in database
GPG Key ID: FA1F770C7B1D40C1

@ -50,6 +50,7 @@ public class UpdateChecker extends BukkitRunnable {
int currentPart = Integer.parseInt(currentParts[i]); int currentPart = Integer.parseInt(currentParts[i]);
int newPart = Integer.parseInt(newParts[i]); int newPart = Integer.parseInt(newParts[i]);
if (newPart > currentPart) return Status.UPDATE_NEEDED; 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.ordinal() > currentType.ordinal()) return Status.UPDATE_NEEDED;
if (newType == currentType) { if (newType == currentType) {