From 6e77cc70d0d1d610d06516f68d6551c72be94f4a Mon Sep 17 00:00:00 2001 From: meiskam Date: Fri, 24 Jan 2014 21:08:34 -0500 Subject: [PATCH] Fixed updater --- src/main/java/org/shininet/bukkit/playerheads/Updater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/shininet/bukkit/playerheads/Updater.java b/src/main/java/org/shininet/bukkit/playerheads/Updater.java index 3689ec61..b81e1569 100644 --- a/src/main/java/org/shininet/bukkit/playerheads/Updater.java +++ b/src/main/java/org/shininet/bukkit/playerheads/Updater.java @@ -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;