diff --git a/src/main/java/com/songoda/ultimatetimber/treefall/NoAnimationTreeDestroyer.java b/src/main/java/com/songoda/ultimatetimber/treefall/NoAnimationTreeDestroyer.java index cc84a9b..b53726d 100644 --- a/src/main/java/com/songoda/ultimatetimber/treefall/NoAnimationTreeDestroyer.java +++ b/src/main/java/com/songoda/ultimatetimber/treefall/NoAnimationTreeDestroyer.java @@ -19,12 +19,12 @@ public class NoAnimationTreeDestroyer { Block mainLog = getMainLog(minedLog.getLocation()); - Material oldMaterial = mainLog.getType(); - Byte oldData = mainLog.getData(); Location mainLogLocation = mainLog.getLocation().clone(); for (Block block : blocks) { + TreeReplant.replaceOriginalBlock(block); + Material material = LeafToSaplingConverter.convertLeaves(block.getType()); if (material.equals(Material.AIR)) continue; @@ -74,9 +74,6 @@ public class NoAnimationTreeDestroyer { } - if(mainLogLocation.getBlock().getType() == Material.AIR) { - TreeReplant.replaceOriginalBlock(mainLogLocation.getBlock()); - } }