mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 11:25:55 +03:00
14 lines
637 B
Diff
14 lines
637 B
Diff
--- ../src-base/minecraft/net/minecraft/world/gen/feature/WorldGenAbstractTree.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/gen/feature/WorldGenAbstractTree.java
|
|
@@ -31,4 +31,10 @@
|
|
this.setBlockAndNotifyAdequately(worldIn, pos, Blocks.DIRT.getDefaultState());
|
|
}
|
|
}
|
|
+
|
|
+ public boolean isReplaceable(World world, BlockPos pos)
|
|
+ {
|
|
+ net.minecraft.block.state.IBlockState state = world.getBlockState(pos);
|
|
+ return state.getBlock().isAir(state, world, pos) || state.getBlock().isLeaves(state, world, pos) || state.getBlock().isWood(world, pos) || canGrowInto(state.getBlock());
|
|
+ }
|
|
}
|