Skip to content

Commit

Permalink
Fix a typo, but this commit is mainly to make a build happen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidendra committed Sep 16, 2011
1 parent f1300fc commit 1b4941c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/griefcraft/util/Updater.java
Expand Up @@ -254,12 +254,13 @@ public boolean tryAutoUpdate(boolean forceUpdate) {
}
}

// we shouldn't update if the current version is equal to the latest
if (LWCInfo.FULL_VERSION.equals(latestVersion)) {
// we shouldn't update if the current version is the same as the latest, or their build numbers are equal
Version current = LWCInfo.FULL_VERSION;
if (current.equals(latestVersion) || (current.getBuildNumber() > 0 && latestVersion.getBuildNumber() > 0 && current.getBuildNumber() == latestVersion.getBuildNumber())) {
return false;
}

logger.info("LWC: Updating found!");
logger.info(Colors.Red + "LWC update found!");

// update_site/download/LWC.jar
UpdaterFile file = new UpdaterFile("plugins/LWC.jar", getLatestDownloadURL());
Expand Down

0 comments on commit 1b4941c

Please sign in to comment.