mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Made the 1.7 update checker also think about betas.
Just in case.
This commit is contained in:
parent
8a6af1713f
commit
e3c35c2102
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.mod.update;
|
|||
|
||||
import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues;
|
||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
||||
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
|
@ -58,7 +57,8 @@ public class ThreadUpdateChecker extends Thread{
|
|||
UpdateChecker.updateVersionString = highestString;
|
||||
}
|
||||
|
||||
int clientVersion = Integer.parseInt(ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1));
|
||||
String clientVersionString = ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1);
|
||||
int clientVersion = Integer.parseInt(clientVersionString.substring(0, clientVersionString.indexOf("_")));
|
||||
if(UpdateChecker.updateVersionInt > clientVersion){
|
||||
UpdateChecker.needsUpdateNotify = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue