From ba44595221cf8f491d5199e6dd5a961f304fa1f7 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 20 Jun 2021 12:24:11 +0100 Subject: [PATCH] Fixed Vein --- .../ecoenchants/enchantments/ecoenchants/normal/Vein.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Vein.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Vein.java index 2dac016e..7e18b756 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Vein.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Vein.java @@ -13,6 +13,8 @@ import org.bukkit.event.block.BlockBreakEvent; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.Set; @@ -36,7 +38,7 @@ public class Vein extends EcoEnchant { return; } - List materials = new ArrayList<>(); + List materials = Collections.singletonList(block.getType()); if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "whitelisted-blocks").contains(block.getType().toString().toLowerCase())) { return;