Fix acedential inversion causing some tress to not have leaves. Closes #1522

This commit is contained in:
Lex Manos 2014-11-28 06:02:41 -08:00
parent dce17105ea
commit 0edeb1e04b
4 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@
BlockPos blockpos1 = new BlockPos(l, i, j1);
- if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().func_149730_j())
+ if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
+ if (p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
{
this.func_175905_a(p_180709_1_, blockpos1, Blocks.field_150362_t, this.field_150528_a);
}

View file

@ -35,7 +35,7 @@
blockpos1 = new BlockPos(i2, l1, j1);
- if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().func_149730_j())
+ if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
+ if (p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
{
this.func_175906_a(p_180709_1_, blockpos1, Blocks.field_150362_t);
}

View file

@ -31,7 +31,7 @@
BlockPos blockpos1 = new BlockPos(k1, j1, i2);
- if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().func_149730_j())
+ if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
+ if (p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
{
this.func_175905_a(p_180709_1_, blockpos1, Blocks.field_150362_t, BlockPlanks.EnumType.SPRUCE.func_176839_a());
}

View file

@ -35,7 +35,7 @@
BlockPos blockpos1 = new BlockPos(i2, l1, k2);
- if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().func_149730_j())
+ if (!p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
+ if (p_180709_1_.func_180495_p(blockpos1).func_177230_c().canBeReplacedByLeaves(p_180709_1_, blockpos1))
{
this.func_175905_a(p_180709_1_, blockpos1, Blocks.field_150362_t, BlockPlanks.EnumType.SPRUCE.func_176839_a());
}