mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 06:40:05 +03:00
12 lines
838 B
Diff
12 lines
838 B
Diff
--- ../src-base/minecraft/net/minecraft/world/gen/feature/WorldGenTallGrass.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/gen/feature/WorldGenTallGrass.java
|
|
@@ -19,7 +19,7 @@
|
|
|
|
public boolean generate(World worldIn, Random rand, BlockPos position)
|
|
{
|
|
- for (IBlockState iblockstate = worldIn.getBlockState(position); (iblockstate.getMaterial() == Material.AIR || iblockstate.getMaterial() == Material.LEAVES) && position.getY() > 0; iblockstate = worldIn.getBlockState(position))
|
|
+ for (IBlockState iblockstate = worldIn.getBlockState(position); (iblockstate.getBlock().isAir(iblockstate, worldIn, position) || iblockstate.getBlock().isLeaves(iblockstate, worldIn, position)) && position.getY() > 0; iblockstate = worldIn.getBlockState(position))
|
|
{
|
|
position = position.down();
|
|
}
|