Fixed Vein

This commit is contained in:
Auxilor 2021-06-20 12:24:11 +01:00
parent b51ec570c5
commit ba44595221

View File

@ -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<Material> materials = new ArrayList<>();
List<Material> materials = Collections.singletonList(block.getType());
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "whitelisted-blocks").contains(block.getType().toString().toLowerCase())) {
return;