Fixed 'protect-custom-mine' not working.

josh is a special child
This commit is contained in:
ASangarin 2021-01-29 21:06:28 +01:00
parent ad175aa511
commit 52d525241b

View File

@ -180,6 +180,8 @@ public class CustomBlockManager extends MMOManager {
public void reload() { public void reload() {
customMineConditions.clear(); customMineConditions.clear();
this.protect = MMOCore.plugin.getConfig().getBoolean("protect-custom-mine");
for (String key : MMOCore.plugin.getConfig().getStringList("custom-mine-conditions")) for (String key : MMOCore.plugin.getConfig().getStringList("custom-mine-conditions"))
try { try {
customMineConditions.add(MMOCore.plugin.loadManager.loadCondition(new MMOLineConfig(key))); customMineConditions.add(MMOCore.plugin.loadManager.loadCondition(new MMOLineConfig(key)));