From 8410d1ec142f50fd83f35f2b82403234e27eb789 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 11 Jan 2016 22:17:49 +0100 Subject: [PATCH] fml --- .../actuallyadditions/mod/update/ThreadUpdateChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c8e10ebeb..9535467f1 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/update/ThreadUpdateChecker.java @@ -58,7 +58,7 @@ public class ThreadUpdateChecker extends Thread{ } String clientVersionString = ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1); - int clientVersion = Integer.parseInt(clientVersionString.substring(0, clientVersionString.indexOf("_"))); + int clientVersion = Integer.parseInt(clientVersionString.contains("_") ? clientVersionString.substring(0, clientVersionString.indexOf("_")) : clientVersionString); if(UpdateChecker.updateVersionInt > clientVersion){ UpdateChecker.needsUpdateNotify = true; }