We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0818f94 commit 7d44a43Copy full SHA for 7d44a43
implementations/spigot/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java
@@ -74,7 +74,7 @@ public BukkitPlugin() {
74
//try to get best matching minecraft-version
75
try {
76
String versionString = getServer().getBukkitVersion();
77
- Matcher versionMatcher = Pattern.compile("(\\d+\\.\\d+\\.\\d+)[-_].*").matcher(versionString);
+ Matcher versionMatcher = Pattern.compile("(\\d+(?:\\.\\d+){1,2})[-_].*").matcher(versionString);
78
if (!versionMatcher.matches()) throw new IllegalArgumentException();
79
version = MinecraftVersion.of(versionMatcher.group(1));
80
} catch (IllegalArgumentException e) {
0 commit comments