This commit is contained in:
Ellpeck 2016-01-11 22:17:49 +01:00
parent e3c35c2102
commit 8410d1ec14

View file

@ -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;
}