From 8536fbb21430bfb7f7d3331812c88abbb8299aed Mon Sep 17 00:00:00 2001 From: icanttellyou <54495659+forkiesassds@users.noreply.github.com> Date: Sat, 10 Aug 2024 17:42:46 +0300 Subject: [PATCH 1/2] Add 1.21.1 support --- spigot/src/main/java/org/dynmap/bukkit/Helper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spigot/src/main/java/org/dynmap/bukkit/Helper.java b/spigot/src/main/java/org/dynmap/bukkit/Helper.java index 2c8a94c8..8b794011 100644 --- a/spigot/src/main/java/org/dynmap/bukkit/Helper.java +++ b/spigot/src/main/java/org/dynmap/bukkit/Helper.java @@ -40,7 +40,7 @@ public class Helper { Log.info("Loading Glowstone support"); BukkitVersionHelper.helper = loadVersionHelper("org.dynmap.bukkit.helper.BukkitVersionHelperGlowstone"); } - else if (v.contains("(MC: 1.21)")) { + else if (v.contains("(MC: 1.21)") || v.contains("(MC: 1.21.1)")) { BukkitVersionHelper.helper = loadVersionHelper("org.dynmap.bukkit.helper.v121.BukkitVersionHelperSpigot121"); } else if (v.contains("(MC: 1.20)") || v.contains("(MC: 1.20.1)")) { From 6c2398f9f3c19bbdbf542a34a46bcda4af98080a Mon Sep 17 00:00:00 2001 From: icanttellyou <54495659+forkiesassds@users.noreply.github.com> Date: Tue, 13 Aug 2024 02:07:59 +0300 Subject: [PATCH 2/2] Future-proofing --- spigot/src/main/java/org/dynmap/bukkit/Helper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spigot/src/main/java/org/dynmap/bukkit/Helper.java b/spigot/src/main/java/org/dynmap/bukkit/Helper.java index 8b794011..cd1fad52 100644 --- a/spigot/src/main/java/org/dynmap/bukkit/Helper.java +++ b/spigot/src/main/java/org/dynmap/bukkit/Helper.java @@ -40,7 +40,7 @@ public class Helper { Log.info("Loading Glowstone support"); BukkitVersionHelper.helper = loadVersionHelper("org.dynmap.bukkit.helper.BukkitVersionHelperGlowstone"); } - else if (v.contains("(MC: 1.21)") || v.contains("(MC: 1.21.1)")) { + else if (v.contains("(MC: 1.21")) { BukkitVersionHelper.helper = loadVersionHelper("org.dynmap.bukkit.helper.v121.BukkitVersionHelperSpigot121"); } else if (v.contains("(MC: 1.20)") || v.contains("(MC: 1.20.1)")) {