From 52d525241b9bd24806194fc2bf55cab41e823253 Mon Sep 17 00:00:00 2001 From: ASangarin Date: Fri, 29 Jan 2021 21:06:28 +0100 Subject: [PATCH] Fixed 'protect-custom-mine' not working. josh is a special child --- .../java/net/Indyuce/mmocore/manager/CustomBlockManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/Indyuce/mmocore/manager/CustomBlockManager.java b/src/main/java/net/Indyuce/mmocore/manager/CustomBlockManager.java index c723205a..97c2bcc4 100644 --- a/src/main/java/net/Indyuce/mmocore/manager/CustomBlockManager.java +++ b/src/main/java/net/Indyuce/mmocore/manager/CustomBlockManager.java @@ -180,6 +180,8 @@ public class CustomBlockManager extends MMOManager { public void reload() { customMineConditions.clear(); + this.protect = MMOCore.plugin.getConfig().getBoolean("protect-custom-mine"); + for (String key : MMOCore.plugin.getConfig().getStringList("custom-mine-conditions")) try { customMineConditions.add(MMOCore.plugin.loadManager.loadCondition(new MMOLineConfig(key)));