Skip to content

Commit

Permalink
Fix fossils always generating at the same Y level
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Aug 26, 2023
1 parent 862ead5 commit a2f65d9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkPro
}
}

if(fossilGen != null && ArrayUtils.contains(ConfigWorld.fossilDimensionBlacklist, world.provider.dimensionId) == ConfigWorld.fossilDimensionBlacklistAsWhitelist) {
if (fossilGen != null && rand.nextInt(64) == 0 && ArrayUtils.contains(ConfigWorld.fossilDimensionBlacklist, world.provider.dimensionId) == ConfigWorld.fossilDimensionBlacklistAsWhitelist) {
x = chunkX * 16 + rand.nextInt(16) + 8;
z = chunkZ * 16 + rand.nextInt(16) + 8;
if (rand.nextInt(64) == 0 && fossilBiomes.contains(world.getBiomeGenForCoords(x, z))) {
fossilGen.generate(world, rand, x, MathHelper.getRandomIntegerInRange(rand, 49, 40), z);
if (fossilBiomes.contains(world.getBiomeGenForCoords(x, z))) {
fossilGen.generate(world, rand, x, MathHelper.getRandomIntegerInRange(rand, 40, 49), z);
}
}
}
Expand Down

0 comments on commit a2f65d9

Please sign in to comment.