From 41d11bab30f381927910ab81f1733d943e25e1e3 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 12 Jun 2021 10:51:48 +0100 Subject: [PATCH] Removed pointless reference --- .../willfp/ecoenchants/command/commands/CommandEcodebug.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java index 288e282c..eaf428bc 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java @@ -79,7 +79,7 @@ public class CommandEcodebug extends AbstractCommand { List extern = Arrays.stream(Enchantment.values()).collect(Collectors.toList()); - extern.removeAll(EcoEnchants.values().stream().map(EcoEnchant::getEnchantment).collect(Collectors.toList())); + extern.removeAll(new ArrayList<>(EcoEnchants.values())); extern.removeIf(enchantment -> enchantment.getClass().toString().toLowerCase().contains("CraftEnchantment")); String external = extern.stream().map(enchantment -> "{" + enchantment.toString() + ", Provider: " + enchantment.getClass().toString() + "}").collect(Collectors.joining(", ")); Bukkit.getLogger().info("External Enchantments: " + external);