Skip to content

Commit

Permalink
Fix BukkitVersionUtil
Browse files Browse the repository at this point in the history
olijeffers0n committed Jun 7, 2023
1 parent f7a1979 commit 7ffc184
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ public class BukkitVersionUtil {
static {
String[] versionParts = Bukkit.getBukkitVersion().split("-")[0].split("\\.");
CURRENT_MAJOR = Double.parseDouble(versionParts[1]);
CURRENT_MINOR = Double.parseDouble(versionParts[2]);
CURRENT_MINOR = versionParts.length >= 3 ? Double.parseDouble(versionParts[2]): 0;
}

public static Version getVersion() {

0 comments on commit 7ffc184

Please sign in to comment.