mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +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
|
@Override
|
||||||
public void generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) {
|
public void generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) {
|
||||||
|
super.generateFeatures(world, chunk, structureAccessor);
|
||||||
delegate.getGenerationStages().forEach(populator -> {
|
delegate.getGenerationStages().forEach(populator -> {
|
||||||
if(!(populator instanceof Chunkified)) {
|
if(!(populator instanceof Chunkified)) {
|
||||||
populator.populate((ProtoWorld) world);
|
populator.populate((ProtoWorld) world);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(pack.vanillaFlora()) {
|
|
||||||
super.generateFeatures(world, chunk, structureAccessor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -245,19 +243,6 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
|
|||||||
return new VerticalBlockSample(view.getBottomY(), array);
|
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() {
|
public ConfigPack getPack() {
|
||||||
return pack;
|
return pack;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user