diff --git a/src/main/java/com/zetaplugins/timberz/handler/TreeAnimationHandler.java b/src/main/java/com/zetaplugins/timberz/handler/TreeAnimationHandler.java index d023d62..9bd74f1 100644 --- a/src/main/java/com/zetaplugins/timberz/handler/TreeAnimationHandler.java +++ b/src/main/java/com/zetaplugins/timberz/handler/TreeAnimationHandler.java @@ -52,7 +52,7 @@ public void run() { // Break the block naturally to drop items Material blockType = block.getType(); - block.breakNaturally(player.getInventory().getItemInMainHand()); + player.breakBlock(block); // Random chance to spawn floating wood chips if (random.nextInt(5) == 0) { diff --git a/src/main/java/com/zetaplugins/timberz/listener/LeafBreakListener.java b/src/main/java/com/zetaplugins/timberz/listener/LeafBreakListener.java index 79006fc..8fa207a 100644 --- a/src/main/java/com/zetaplugins/timberz/listener/LeafBreakListener.java +++ b/src/main/java/com/zetaplugins/timberz/listener/LeafBreakListener.java @@ -42,7 +42,7 @@ public void onBlockBreak(BlockDamageEvent event) { ItemStack tool = player.getInventory().getItemInMainHand(); if (tool.getType() == Material.AIR || !MaterialTypeChecks.isValidAxe(tool, plugin)) return; - brokenBlock.breakNaturally(tool); + player.breakBlock(brokenBlock); player.playSound(player.getLocation(), Sound.BLOCK_GRASS_BREAK, 1.0f, 1.0f); }