mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-27 03:17:43 +01:00
Fix version without patch not being detected on spigot/paper correctly
This commit is contained in:
parent
0818f945c8
commit
7d44a433d3
@ -74,7 +74,7 @@ public BukkitPlugin() {
|
||||
//try to get best matching minecraft-version
|
||||
try {
|
||||
String versionString = getServer().getBukkitVersion();
|
||||
Matcher versionMatcher = Pattern.compile("(\\d+\\.\\d+\\.\\d+)[-_].*").matcher(versionString);
|
||||
Matcher versionMatcher = Pattern.compile("(\\d+(?:\\.\\d+){1,2})[-_].*").matcher(versionString);
|
||||
if (!versionMatcher.matches()) throw new IllegalArgumentException();
|
||||
version = MinecraftVersion.of(versionMatcher.group(1));
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user