From 5af145615b2a3c18ec80e578ee13d714524a5b47 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 15 Dec 2018 12:53:31 +0200 Subject: [PATCH] Update NoAnimationTreeDestroyer.java --- .../ultimatetimber/treefall/NoAnimationTreeDestroyer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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()); - } }