Skip to content

Commit

Permalink
Fixed updater
Browse files Browse the repository at this point in the history
  • Loading branch information
meiskam committed Jan 25, 2014
1 parent 45bc8ad commit 6e77cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/shininet/bukkit/playerheads/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private boolean versionCheck(String title) {
if (title.split(" v").length == 2) {
final String remoteVersion = title.split(" v")[1].split(" ")[0]; // Get the newest file's version number

if (this.hasTag(version) || version.equalsIgnoreCase(remoteVersion)) {
if (this.hasTag(version) || version.split("-")[0].equalsIgnoreCase(remoteVersion.split("-")[0])) {
// We already have the latest version, or this build is tagged for no-update
this.result = Updater.UpdateResult.NO_UPDATE;
return false;
Expand Down

0 comments on commit 6e77cc7

Please sign in to comment.