mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
fml
This commit is contained in:
parent
f014b1af57
commit
dbf8093ea0
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