mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-23 15:15:12 +01:00
Fixed deprecation
This commit is contained in:
parent
24c1135dc7
commit
566dce4fdd
@ -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("");
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user