From 9d58e513b41b6282f7d02057e80ccd88f96564a0 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 3 Nov 2020 16:37:30 -0600 Subject: [PATCH] This is backwards. --- .../src/com/songoda/ultimatetimber/manager/TreeFallManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltimateTimber/Plugin/src/com/songoda/ultimatetimber/manager/TreeFallManager.java b/UltimateTimber/Plugin/src/com/songoda/ultimatetimber/manager/TreeFallManager.java index c9d93a0..1fed612 100644 --- a/UltimateTimber/Plugin/src/com/songoda/ultimatetimber/manager/TreeFallManager.java +++ b/UltimateTimber/Plugin/src/com/songoda/ultimatetimber/manager/TreeFallManager.java @@ -115,7 +115,7 @@ public class TreeFallManager extends Manager implements Listener { return; int toolDamage = this.getToolDamage(detectedTree.getDetectedTreeBlocks(), tool.containsEnchantment(Enchantment.SILK_TOUCH)); - if (ConfigurationManager.Setting.PROTECT_TOOL.getBoolean() && !ItemUtils.hasEnoughDurability(tool, toolDamage)) + if (!ConfigurationManager.Setting.PROTECT_TOOL.getBoolean() && !ItemUtils.hasEnoughDurability(tool, toolDamage)) return; // Trigger fall event