fancynpcs: Add support for 1.21.6

This commit is contained in:
Oliver
2025-06-17 17:18:07 +02:00
parent 64e0eeddcf
commit be24b0f359
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ public class AttributeManagerImpl implements AttributeManager {
private void init() {
String mcVersion = Bukkit.getMinecraftVersion();
switch (mcVersion) {
case "1.21.6 Release Candidate 1" -> attributes = Attributes_1_21_6.getAllAttributes();
case "1.21.6" -> attributes = Attributes_1_21_6.getAllAttributes();
case "1.21.5" -> attributes = Attributes_1_21_5.getAllAttributes();
case "1.21.4" -> attributes = Attributes_1_21_4.getAllAttributes();
case "1.21.2", "1.21.3" -> attributes = Attributes_1_21_3.getAllAttributes();

View File

@@ -155,7 +155,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
String mcVersion = Bukkit.getMinecraftVersion();
switch (mcVersion) {
case "1.21.6 Release Candidate 1" -> npcAdapter = Npc_1_21_6::new;
case "1.21.6" -> npcAdapter = Npc_1_21_6::new;
case "1.21.5" -> npcAdapter = Npc_1_21_5::new;
case "1.21.4" -> npcAdapter = Npc_1_21_4::new;
case "1.21.2", "1.21.3" -> npcAdapter = Npc_1_21_3::new;