mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 10:06:11 +03:00
12 lines
837 B
Diff
12 lines
837 B
Diff
--- ../src-base/minecraft/net/minecraft/world/gen/feature/WorldGenDeadBush.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/gen/feature/WorldGenDeadBush.java
|
|
@@ -11,7 +11,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();
|
|
}
|