Biome features

This commit is contained in:
paulevsGitch 2021-12-23 16:22:38 +03:00
parent 54258d38e3
commit 35f9cd8769
3 changed files with 63 additions and 10 deletions

View file

@ -241,6 +241,9 @@ public class StructureErode {
}
private static boolean ignore(BlockState state, WorldGenLevel world, BlockPos pos) {
if (state.is(TagAPI.BLOCK_GEN_TERRAIN) || state.is(BlockTags.NYLIUM)) {
return true;
}
return !state.getMaterial().equals(Material.STONE) || BlocksHelper.isInvulnerable(state, world, pos);
}