Fix trying to sometimes drop air

This commit is contained in:
Esophose 2019-02-08 19:50:09 -07:00
parent a766b780cb
commit d0cedf4ced

View File

@ -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;