mirror of
https://github.com/songoda/UltimateTimber.git
synced 2024-11-05 10:09:45 +01:00
Update NoAnimationTreeDestroyer.java
This commit is contained in:
parent
e485388b3d
commit
5af145615b
@ -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());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user