Biome-relative bonemeal grasses

This commit is contained in:
paulevsGitch 2021-01-21 11:05:02 +03:00
parent 80d2b27a1d
commit 076094d5b7
2 changed files with 41 additions and 3 deletions

View file

@ -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();
}