mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Use BlockPos and Vec3i, remove our Vect implementations
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user