Added Farmland to PLAINS type plants as that has changed in 1.7. Also made BlockTallGrass call it's super.canBlockStay to better support custom soils. Closes #1077
This commit is contained in:
parent
5e6c346c7c
commit
1c7341b982
2 changed files with 10 additions and 1 deletions
|
@ -924,7 +924,7 @@
|
|||
+ case Nether: return this == Blocks.field_150425_aM;
|
||||
+ case Crop: return this == Blocks.field_150458_ak;
|
||||
+ case Cave: return isSideSolid(world, x, y, z, UP);
|
||||
+ case Plains: return this == Blocks.field_150349_c || this == Blocks.field_150346_d;
|
||||
+ case Plains: return this == Blocks.field_150349_c || this == Blocks.field_150346_d || this == Blocks.field_150458_ak;
|
||||
+ case Water: return world.func_147439_a(x, y, z).func_149688_o() == Material.field_151586_h && world.func_72805_g(x, y, z) == 0;
|
||||
+ case Beach:
|
||||
+ boolean isBeach = this == Blocks.field_150349_c || this == Blocks.field_150346_d || this == Blocks.field_150354_m;
|
||||
|
|
|
@ -19,6 +19,15 @@
|
|||
+public class BlockTallGrass extends BlockBush implements IGrowable, IShearable
|
||||
{
|
||||
private static final String[] field_149871_a = new String[] {"deadbush", "tallgrass", "fern"};
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -53,7 +56,7 @@
|
||||
|
||||
public boolean func_149718_j(World p_149718_1_, int p_149718_2_, int p_149718_3_, int p_149718_4_)
|
||||
{
|
||||
- return this.func_149854_a(p_149718_1_.func_147439_a(p_149718_2_, p_149718_3_ - 1, p_149718_4_));
|
||||
+ return super.func_149718_j(p_149718_1_, p_149718_2_, p_149718_3_, p_149718_4_);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -71,7 +74,7 @@
|
||||
|
||||
|
|
Loading…
Reference in a new issue