We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a9926 commit a03fddfCopy full SHA for a03fddf
1 file changed
spigot/src/main/java/com/funniray/minimap/spigot/impl/SpigotServer.java
@@ -17,10 +17,8 @@ public Version getMinecraftVersion() {
17
String[] ver = Bukkit.getBukkitVersion().split("-")[0].split("\\.");
18
if (ver.length < 3) {
19
return new Version(parseInt(ver[0]), parseInt(ver[1]), 0);
20
- } else if (ver.length == 3) {
21
- return new Version(parseInt(ver[0]), parseInt(ver[1]), parseInt(ver[2]));
22
} else {
23
- throw new RuntimeException("Cannot parse version "+Bukkit.getBukkitVersion());
+ return new Version(parseInt(ver[0]), parseInt(ver[1]), parseInt(ver[2]));
24
}
25
26
0 commit comments