Silence API out of date warning on config load

This commit is contained in:
nossr50 2022-01-17 15:57:04 -08:00
parent 3be15d3f65
commit 8f0fb76847
2 changed files with 2 additions and 12 deletions

View File

@ -67,7 +67,7 @@ public abstract class BukkitConfig {
config.options().parseComments(true); config.options().parseComments(true);
} catch (NoSuchMethodError e) { } catch (NoSuchMethodError e) {
//e.printStackTrace(); //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); config.options().copyDefaults(true);

View File

@ -17,6 +17,7 @@ import java.util.WeakHashMap;
import static com.gmail.nossr50.metadata.MetadataService.*; import static com.gmail.nossr50.metadata.MetadataService.*;
//TODO: Use SpawnReason where appropriate instead of MobMetaFlagType
public class MobMetadataService { public class MobMetadataService {
private final @NotNull WeakHashMap<Entity, HashSet<MobMetaFlagType>> mobRegistry; //transient data private final @NotNull WeakHashMap<Entity, HashSet<MobMetaFlagType>> mobRegistry; //transient data
private final @NotNull EnumMap<MobMetaFlagType, NamespacedKey> mobFlagKeyMap; //used for persistent data private final @NotNull EnumMap<MobMetaFlagType, NamespacedKey> 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 * Whether or not a target {@link LivingEntity} has a specific mcMMO mob flags
* *