check against isSurfaceWorld() instead of dimensionId == 0 (#145)

This commit is contained in:
Pascal authored and GitHub committed 2025-01-04 23:53:39 -07:00
1 parent d030556751
commit 4eab5a89ba
1 file changed
+2 -2
@@ -39,10 +39,10 @@ public class TBaseWorldGenerator implements IWorldGenerator {
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);
}