Update NoAnimationTreeDestroyer.java

This commit is contained in:
Brian 2018-12-15 12:53:31 +02:00
parent e485388b3d
commit 5af145615b

View File

@ -19,12 +19,12 @@ public class NoAnimationTreeDestroyer {
Block mainLog = getMainLog(minedLog.getLocation()); Block mainLog = getMainLog(minedLog.getLocation());
Material oldMaterial = mainLog.getType();
Byte oldData = mainLog.getData();
Location mainLogLocation = mainLog.getLocation().clone(); Location mainLogLocation = mainLog.getLocation().clone();
for (Block block : blocks) { for (Block block : blocks) {
TreeReplant.replaceOriginalBlock(block);
Material material = LeafToSaplingConverter.convertLeaves(block.getType()); Material material = LeafToSaplingConverter.convertLeaves(block.getType());
if (material.equals(Material.AIR)) continue; if (material.equals(Material.AIR)) continue;
@ -74,9 +74,6 @@ public class NoAnimationTreeDestroyer {
} }
if(mainLogLocation.getBlock().getType() == Material.AIR) {
TreeReplant.replaceOriginalBlock(mainLogLocation.getBlock());
}
} }