mirror of
https://github.com/songoda/UltimateTimber.git
synced 2024-11-29 05:16:29 +01:00
Fix trying to sometimes drop air
This commit is contained in:
parent
a766b780cb
commit
d0cedf4ced
@ -19,6 +19,9 @@ class TreeLoot {
|
||||
Material originalMaterial = blockData.getMaterial();
|
||||
Material material = LeafToSaplingConverter.convertLeaves(originalMaterial);
|
||||
|
||||
if (originalMaterial.equals(Material.AIR) || originalMaterial.equals(Material.CAVE_AIR) || originalMaterial.equals(Material.VOID_AIR))
|
||||
return;
|
||||
|
||||
if (hasSilkTouch) { // No bonus loot for silk touch
|
||||
world.dropItem(location, new ItemStack(originalMaterial, 1));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user