From d5948d6cf04eb3ee53a6185fd934fcede895620d Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 16 Jul 2021 14:13:58 +0200 Subject: [PATCH] Removed redundant cast --- .../java/com/willfp/ecoenchants/display/EnchantmentCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java index 0de1bff3..a46e674a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java @@ -203,7 +203,7 @@ public class EnchantmentCache { String processedStringDescription = descriptionBuilder.toString(); processedStringDescription = processedStringDescription.replace(Display.PREFIX, ""); - this.stringDescription = processedStringDescription.replaceAll(((EnchantDisplay) PLUGIN.getDisplayModule()).getOptions().getDescriptionOptions().getColor(), ""); + this.stringDescription = processedStringDescription.replaceAll(PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor(), ""); } } }