Fix acedential inversion causing some tress to not have leaves. Closes #1522
This commit is contained in:
parent
dce17105ea
commit
0edeb1e04b
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue