Allow regex version matching in version file
This commit is contained in:
parent
bfbd2ef55d
commit
a5de67f4f0
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ 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 (line.startsWith(mcVersion)) {
|
if (mcVersion.matches(line)) {
|
||||||
if (line.contains(DefaultProps.MOD)) {
|
if (line.contains(DefaultProps.MOD)) {
|
||||||
|
|
||||||
String[] tokens = line.split(":");
|
String[] tokens = line.split(":");
|
||||||
|
|
Loading…
Reference in a new issue