Fixed BCLib compat
This commit is contained in:
parent
2a0f58a729
commit
ef025d05dd
29 changed files with 21 additions and 47 deletions
|
@ -30,7 +30,6 @@ public class CrystalMountainPiece extends MountainPiece {
|
|||
|
||||
public CrystalMountainPiece(BlockPos center, float radius, float height, Random random, Biome biome) {
|
||||
super(EndStructures.MOUNTAIN_PIECE, center, radius, height, random, biome);
|
||||
//TODO: 1.18 this needs to change to a dynamic block
|
||||
top = EndBiome.findTopMaterial(biome); //biome.getGenerationSettings().getSurfaceBuilderConfig().getTopMaterial();
|
||||
}
|
||||
|
||||
|
@ -40,7 +39,7 @@ public class CrystalMountainPiece extends MountainPiece {
|
|||
|
||||
@Override
|
||||
protected void fromNbt(CompoundTag tag) {
|
||||
super.fromNbt(tag);//TODO: 1.18 this needs to change to a dynamic block
|
||||
super.fromNbt(tag);
|
||||
top = EndBiome.findTopMaterial(BiomeAPI.getBiome(biomeID)); //BiomeAPI.getBiome(biomeID).getBiome().getGenerationSettings().getSurfaceBuilderConfig().getTopMaterial();
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,6 @@ public class LakePiece extends BasePiece {
|
|||
)) {
|
||||
state = chunk.getBlockState(mut.above());
|
||||
if (state.isAir()) {
|
||||
//TODO: 1.18 this needs to change to a dynamic block
|
||||
state = EndBiome.findTopMaterial(world, worldPos);
|
||||
// state = random.nextBoolean() ? ENDSTONE : world.getBiome(worldPos)
|
||||
// .getGenerationSettings()
|
||||
|
@ -170,7 +169,6 @@ public class LakePiece extends BasePiece {
|
|||
|
||||
BlockState bState = chunk.getBlockState(mut);
|
||||
if (bState.isAir()) {
|
||||
//TODO: 1.18 this needs to change to a dynamic block
|
||||
bState = EndBiome.findTopMaterial(world, mut.offset(sx, 0, sz));
|
||||
// bState = random.nextBoolean() ? ENDSTONE : world.getBiome(mut.offset(sx, 0, sz))
|
||||
// .getGenerationSettings()
|
||||
|
@ -194,7 +192,6 @@ public class LakePiece extends BasePiece {
|
|||
mut.setY(y + 1);
|
||||
BlockState bState = chunk.getBlockState(mut);
|
||||
if (bState.isAir()) {
|
||||
//TODO: 1.18 this needs to change to a dynamic block
|
||||
bState =EndBiome.findTopMaterial(world, mut.offset(sx, 0, sz));
|
||||
// bState = random.nextBoolean() ? ENDSTONE : world.getBiome(mut.offset(sx, 0, sz))
|
||||
// .getGenerationSettings()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue