mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-26 01:01:22 +01:00
Fixed lumberjack
This commit is contained in:
parent
b84b4c4dc7
commit
93c7705d96
@ -18,7 +18,7 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class Lumberjack extends EcoEnchant {
|
||||
private final List<Material> materials = new ArrayList<>();
|
||||
private List<Material> materials;
|
||||
|
||||
public Lumberjack() {
|
||||
super(
|
||||
@ -28,7 +28,7 @@ public class Lumberjack extends EcoEnchant {
|
||||
|
||||
@Override
|
||||
protected void postUpdate() {
|
||||
materials.clear();
|
||||
materials = new ArrayList<>();
|
||||
for (String string : this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "whitelisted-blocks", false)) {
|
||||
Material match = Material.getMaterial(string.toUpperCase());
|
||||
if (match != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user