From e3c35c2102d1eac75fa04854349f2a3b48ebc965 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 11 Jan 2016 18:57:09 +0100 Subject: [PATCH] Made the 1.7 update checker also think about betas. Just in case. --- .../actuallyadditions/mod/update/ThreadUpdateChecker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java b/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java index 3b47e63be..c8e10ebeb 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java @@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.mod.update; import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues; import de.ellpeck.actuallyadditions.mod.util.ModUtil; -import de.ellpeck.actuallyadditions.mod.util.StringUtil; import java.io.InputStreamReader; import java.net.URL; @@ -58,7 +57,8 @@ public class ThreadUpdateChecker extends Thread{ UpdateChecker.updateVersionString = highestString; } - int clientVersion = Integer.parseInt(ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1)); + String clientVersionString = ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1); + int clientVersion = Integer.parseInt(clientVersionString.substring(0, clientVersionString.indexOf("_"))); if(UpdateChecker.updateVersionInt > clientVersion){ UpdateChecker.needsUpdateNotify = true; }