mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-25 00:51:20 +01:00
Fixed Vein
This commit is contained in:
parent
b51ec570c5
commit
ba44595221
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user