Allow regex version matching in version file

This commit is contained in:
CovertJaguar 2013-10-27 08:16:03 -07:00
parent bfbd2ef55d
commit a5de67f4f0

View file

@ -86,7 +86,7 @@ public class Version implements Runnable {
String line;
String mcVersion = CoreProxy.proxy.getMinecraftVersion();
while ((line = reader.readLine()) != null) {
if (line.startsWith(mcVersion)) {
if (mcVersion.matches(line)) {
if (line.contains(DefaultProps.MOD)) {
String[] tokens = line.split(":");