From 93c7705d96db5c35a140e16faf45c4b0cced1415 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 13 Nov 2021 13:20:12 +0000 Subject: [PATCH] Fixed lumberjack --- .../enchantments/ecoenchants/normal/Lumberjack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lumberjack.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lumberjack.java index c596ee2c..8fcb934b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lumberjack.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lumberjack.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Set; public class Lumberjack extends EcoEnchant { - private final List materials = new ArrayList<>(); + private List 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) {