diff --git a/common/src/main/java/fr/rakambda/fallingtree/common/tree/breaking/ShiftDownTreeBreakingHandler.java b/common/src/main/java/fr/rakambda/fallingtree/common/tree/breaking/ShiftDownTreeBreakingHandler.java index de735d22..327bc016 100644 --- a/common/src/main/java/fr/rakambda/fallingtree/common/tree/breaking/ShiftDownTreeBreakingHandler.java +++ b/common/src/main/java/fr/rakambda/fallingtree/common/tree/breaking/ShiftDownTreeBreakingHandler.java @@ -53,7 +53,7 @@ private boolean breakElements(@NotNull Tree tree, @NotNull ILevel level, @NotNul mod.getConfiguration().getTrees().getMaxSizeAction(), mod.getConfiguration().getTools().getDamageRounding()); - if(toolHandler.getMaxBreakCount() <= 0){ + if(toolHandler.isPreserveTool()){ log.debug("Didn't break tree at {} as {}'s tool was about to break", tree.getHitPos(), player); mod.notifyPlayer(player, mod.translate("chat.fallingtree.prevented_break_tool")); return false;