Biome-relative bonemeal grasses
This commit is contained in:
parent
80d2b27a1d
commit
076094d5b7
2 changed files with 41 additions and 3 deletions
|
@ -128,7 +128,7 @@ public class BoneMealItemMixin {
|
|||
private BlockState beGetGrassState(World world, BlockPos pos) {
|
||||
BlockState state = world.getBlockState(pos);
|
||||
Block block = state.getBlock();
|
||||
block = BonemealUtil.getGrass(block, world.getRandom());
|
||||
block = BonemealUtil.getGrass(EndBiomes.getBiomeID(world.getBiome(pos)), block, world.getRandom());
|
||||
return block == null ? null : block.getDefaultState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue