mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-09 04:09:43 +01:00
Relax expected Minecraft version format. Partially fixes ticket 124
This commit is contained in:
parent
d810d17abb
commit
db2efbe089
@ -35,7 +35,7 @@ public class MinecraftVersion implements Comparable<MinecraftVersion> {
|
||||
/**
|
||||
* Regular expression used to parse version strings.
|
||||
*/
|
||||
private static final String VERSION_PATTERN = ".*\\(MC:\\s*((?:\\d+\\.)*\\d)\\s*\\)";
|
||||
private static final String VERSION_PATTERN = ".*\\(.*MC.\\s*((?:\\d+\\.)*\\d)\\s*\\)";
|
||||
|
||||
private final int major;
|
||||
private final int minor;
|
||||
|
Loading…
Reference in New Issue
Block a user