Do it right this time
This commit is contained in:
parent
a5de67f4f0
commit
206f2fe712
1 changed files with 5 additions and 7 deletions
|
@ -86,13 +86,11 @@ public class Version implements Runnable {
|
||||||
String line;
|
String line;
|
||||||
String mcVersion = CoreProxy.proxy.getMinecraftVersion();
|
String mcVersion = CoreProxy.proxy.getMinecraftVersion();
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (mcVersion.matches(line)) {
|
String[] tokens = line.split(":");
|
||||||
if (line.contains(DefaultProps.MOD)) {
|
if (mcVersion.matches(tokens[0])) {
|
||||||
|
if (DefaultProps.MOD.matches(tokens[1])) {
|
||||||
String[] tokens = line.split(":");
|
if (VERSION.matches(tokens[2])) {
|
||||||
recommendedVersion = tokens[2];
|
recommendedVersion = tokens[2];
|
||||||
|
|
||||||
if (line.endsWith(VERSION)) {
|
|
||||||
BCLog.logger.finer("Using the latest version [" + getVersion() + "] for Minecraft " + mcVersion);
|
BCLog.logger.finer("Using the latest version [" + getVersion() + "] for Minecraft " + mcVersion);
|
||||||
currentVersion = EnumUpdateState.CURRENT;
|
currentVersion = EnumUpdateState.CURRENT;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue