mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-16 13:03:12 +01:00
fml
This commit is contained in:
parent
e3c35c2102
commit
8410d1ec14
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue