Skip to content

Commit

Permalink
Fix shift down break check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Jul 14, 2024
1 parent 26e6a8b commit 06751df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 06751df

Please sign in to comment.