This commit is contained in:
Ellpeck 2016-01-11 22:15:50 +01:00
parent f014b1af57
commit dbf8093ea0

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