From 206f2fe712f7b63c8662b507e398b882c892740a Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Sun, 27 Oct 2013 08:19:59 -0700 Subject: [PATCH] Do it right this time --- common/buildcraft/core/Version.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/common/buildcraft/core/Version.java b/common/buildcraft/core/Version.java index 8b5318b6..4cecd0e6 100644 --- a/common/buildcraft/core/Version.java +++ b/common/buildcraft/core/Version.java @@ -86,13 +86,11 @@ public class Version implements Runnable { String line; String mcVersion = CoreProxy.proxy.getMinecraftVersion(); while ((line = reader.readLine()) != null) { - if (mcVersion.matches(line)) { - if (line.contains(DefaultProps.MOD)) { - - String[] tokens = line.split(":"); - recommendedVersion = tokens[2]; - - if (line.endsWith(VERSION)) { + String[] tokens = line.split(":"); + if (mcVersion.matches(tokens[0])) { + if (DefaultProps.MOD.matches(tokens[1])) { + if (VERSION.matches(tokens[2])) { + recommendedVersion = tokens[2]; BCLog.logger.finer("Using the latest version [" + getVersion() + "] for Minecraft " + mcVersion); currentVersion = EnumUpdateState.CURRENT; return;