From 8f0fb768474fbb811e2e9fee7a3a1190a1f1eaf6 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 17 Jan 2022 15:57:04 -0800 Subject: [PATCH] Silence API out of date warning on config load --- .../java/com/gmail/nossr50/config/BukkitConfig.java | 2 +- .../gmail/nossr50/metadata/MobMetadataService.java | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/BukkitConfig.java b/src/main/java/com/gmail/nossr50/config/BukkitConfig.java index ecc4fd60d..a22990e00 100644 --- a/src/main/java/com/gmail/nossr50/config/BukkitConfig.java +++ b/src/main/java/com/gmail/nossr50/config/BukkitConfig.java @@ -67,7 +67,7 @@ public abstract class BukkitConfig { config.options().parseComments(true); } catch (NoSuchMethodError e) { //e.printStackTrace(); - mcMMO.p.getLogger().severe("Your Spigot/CraftBukkit API is out of date, update your server software!"); + // mcMMO.p.getLogger().severe("Your Spigot/CraftBukkit API is out of date, update your server software!"); } config.options().copyDefaults(true); diff --git a/src/main/java/com/gmail/nossr50/metadata/MobMetadataService.java b/src/main/java/com/gmail/nossr50/metadata/MobMetadataService.java index 87af92f4e..c0ff78c0c 100644 --- a/src/main/java/com/gmail/nossr50/metadata/MobMetadataService.java +++ b/src/main/java/com/gmail/nossr50/metadata/MobMetadataService.java @@ -17,6 +17,7 @@ import java.util.WeakHashMap; import static com.gmail.nossr50.metadata.MetadataService.*; +//TODO: Use SpawnReason where appropriate instead of MobMetaFlagType public class MobMetadataService { private final @NotNull WeakHashMap> mobRegistry; //transient data private final @NotNull EnumMap mobFlagKeyMap; //used for persistent data @@ -54,17 +55,6 @@ public class MobMetadataService { } } - /** - * Helper method to simplify generating namespaced keys - * - * @param key the {@link String} value of the key - * - * @return the generated {@link NamespacedKey} - */ - private @NotNull NamespacedKey getNamespacedKey(@NotNull String key) { - return new NamespacedKey(mcMMO.p, key); - } - /** * Whether or not a target {@link LivingEntity} has a specific mcMMO mob flags *