From 566dce4fdd6336e6d19a5a2da85162dc8c806f47 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 4 Aug 2021 18:23:25 +0100 Subject: [PATCH] Fixed deprecation --- .../main/java/com/willfp/ecoenchants/command/CommandDebug.java | 2 +- .../java/com/willfp/ecoenchants/command/CommandEnchantinfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandDebug.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandDebug.java index a04e3281..2f784d5b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandDebug.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandDebug.java @@ -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(""); diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandEnchantinfo.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandEnchantinfo.java index d24a8a91..c777d8d7 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandEnchantinfo.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandEnchantinfo.java @@ -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;