mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
Fix acedential inversion causing some tress to not have leaves. Closes #1522
This commit is contained in:
1 parent
dce17105ea
commit
0edeb1e04b
4 files changed
+4
-4
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user