Skip to content

Commit

Permalink
check against isSurfaceWorld() instead of dimensionId == 0 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 authored Jan 5, 2025
1 parent d030556 commit 4eab5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/world/gen/TBaseWorldGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public void generate(Random random, int chunkX, int chunkZ, World world, IChunkP
generateNether(random, chunkX * 16, chunkZ * 16, world);
} else if (world.provider.terrainType != WorldType.FLAT || PHConstruct.genOresFlat) {
generateSurface(random, chunkX * 16, chunkZ * 16, world);
if (world.provider.dimensionId == 0) generateOreBushes(random, chunkX * 16, chunkZ * 16, world);
if (world.provider.isSurfaceWorld()) generateOreBushes(random, chunkX * 16, chunkZ * 16, world);
}

if (PHConstruct.superfunWorld && world.provider.dimensionId == 0) {
if (PHConstruct.superfunWorld && world.provider.isSurfaceWorld()) {
superfunGenerate(random, chunkX * 16, chunkZ * 16, world);
}

Expand Down

0 comments on commit 4eab5a8

Please sign in to comment.