Prevents Hellbark Trees from breaking other blocks
This commit is contained in:
wwrpg 2015-05-11 22:20:19 -07:00
parent 70ee74d2fb
commit 8d12263e7a
1 changed files with 10 additions and 0 deletions

View File

@ -61,6 +61,16 @@ public class WorldGenMiniShrub extends WorldGenAbstractTree
return false;
}
}*/
if ( !this.isReplaceable(world, x, y + 1, z) ||
!this.isReplaceable(world, x, y + 2, z) ||
!this.isReplaceable(world, x+1, y + 2, z) ||
!this.isReplaceable(world, x-1, y + 2, z) ||
!this.isReplaceable(world, x, y + 2, z+1) ||
!this.isReplaceable(world, x, y + 2, z-1) ||
!this.isReplaceable(world, x, y + 3, z))
{
return false;
}
world.getBlock(x, y, z).onPlantGrow(world, x, y, z, x, y, z);