Fixed deprecation

This commit is contained in:
Auxilor 2021-08-04 18:23:25 +01:00
parent 24c1135dc7
commit 566dce4fdd
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ public class CommandDebug extends Subcommand {
brokenCache.removeIf(enchantment -> !(
EnchantmentCache.getEntry(enchantment).getName().equalsIgnoreCase("null")
|| EnchantmentCache.getEntry(enchantment).getRawName().equalsIgnoreCase("null")
|| EnchantmentCache.getEntry(enchantment).getStringDescription().equalsIgnoreCase("null")));
|| EnchantmentCache.getEntry(enchantment).getStringDescription(1).equalsIgnoreCase("null")));
Bukkit.getLogger().info("Enchantments with broken cache: " + brokenCache);
Bukkit.getLogger().info("");

View File

@ -138,7 +138,7 @@ public class CommandEnchantinfo extends PluginCommand {
String maxLevel = String.valueOf(enchantment.getMaxLevel());
final String finalName = EnchantmentCache.getEntry(enchantment).getName();
final String finalDescription = EnchantmentCache.getEntry(enchantment).getStringDescription();
final String finalDescription = EnchantmentCache.getEntry(enchantment).getStringDescription(1);
final String finalTargets = allTargets;
final String finalConflicts = allConflicts;
final String finalMaxLevel = maxLevel;