mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 00:15:35 +00:00
fix vanilla structure gen
This commit is contained in:
parent
1442660e49
commit
c1f8be668c
@ -206,14 +206,12 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
|
||||
|
||||
@Override
|
||||
public void generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) {
|
||||
super.generateFeatures(world, chunk, structureAccessor);
|
||||
delegate.getGenerationStages().forEach(populator -> {
|
||||
if(!(populator instanceof Chunkified)) {
|
||||
populator.populate((ProtoWorld) world);
|
||||
}
|
||||
});
|
||||
if(pack.vanillaFlora()) {
|
||||
super.generateFeatures(world, chunk, structureAccessor);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -245,19 +243,6 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
|
||||
return new VerticalBlockSample(view.getBottomY(), array);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeightOnGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world) {
|
||||
return super.getHeightOnGround(x, z, heightmap, world);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isStrongholdStartingChunk(ChunkPos chunkPos) {
|
||||
if(pack.vanillaStructures()) {
|
||||
return super.isStrongholdStartingChunk(chunkPos);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public ConfigPack getPack() {
|
||||
return pack;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user