Skip to content

Commit

Permalink
fix chainsaw always using durability for tree felling
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed Mar 19, 2024
1 parent b041d1d commit 422395c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public void fellTree(ItemStack stack, Level level, BlockState origin, BlockPos o
orderedBlocks.subList(durabilityLeft, orderedBlocks.size()).clear();
}


stack.hurtAndBreak(orderedBlocks.size(), serverPlayer, p -> p.broadcastBreakEvent(EquipmentSlot.MAINHAND));
ToolHelper.damageItem(stack, serverPlayer);

breakBlocksPerTick(serverPlayer, orderedBlocks, origin.getBlock());
}
Expand Down

0 comments on commit 422395c

Please sign in to comment.