Use BlockPos and Vec3i, remove our Vect implementations

This commit is contained in:
mezz committed 2016-05-06 02:18:03 -07:00
1 parent 62ddd7bafc
commit c30c3d7575
82 files changed
+597 -967

No files matched your search

@@ -39,8 +39,8 @@ public abstract class LeafDecayHelper {
for (int yOffset = -radius; yOffset <= radius; ++yOffset) {
for (int zOffset = -radius; zOffset <= radius; ++zOffset) {
BlockPos blockPos = pos.add(xOffset, yOffset, zOffset);
Block block = BlockUtil.getBlock(world, blockPos);
IBlockState blockState = world.getBlockState(blockPos);
Block block = blockState.getBlock();
if (!block.canSustainLeaves(blockState, world, blockPos)) {
if (block.isLeaves(blockState, world, blockPos)) {
leafDecayValues[(xOffset + arrayOffset) * xArrayMult + (yOffset + arrayOffset) * yArrayMult + zOffset + arrayOffset] = IS_LEAVES;