fix vanilla structure gen

This commit is contained in:
dfsek 2021-12-05 12:25:50 -07:00
parent 1442660e49
commit c1f8be668c

View File

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