Skip to content

Commit

Permalink
Fixed warning version in startup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AerWyn81 committed Dec 8, 2024
1 parent b1a1899 commit a6a9dba
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public enum VersionUtils {
v1_20_R4(1204),
v1_20_R5(1205),
v1_20_R6(1206),
v1_21_R1(1211, 121);
v1_21_R1(1211, 121),
v1_21_R2(1212, 122),
v1_21_R3(1213, 123),
v1_21_R4(1214, 124);

private static VersionUtils version;
private final int[] versionId;
Expand All @@ -37,8 +40,8 @@ public static VersionUtils getVersion() {
try {
version = extractFromString(Bukkit.getBukkitVersion().split("-")[0].replaceAll("\\.", ""));
} catch (Exception e) {
HeadBlocks.log.sendMessage(MessageUtils.colorize("&cError extracting server version" + e.getMessage() + ". Using " + v1_21_R1.name()));
version = v1_21_R1;
HeadBlocks.log.sendMessage(MessageUtils.colorize("&cError extracting server version" + e.getMessage() + ". Using " + v1_21_R4.name()));
version = v1_21_R4;
}

return version;
Expand Down

0 comments on commit a6a9dba

Please sign in to comment.