This is backwards.

This commit is contained in:
Brianna 2020-11-03 16:37:30 -06:00
parent ffb7657a78
commit 9d58e513b4

View File

@ -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