Skip to content

Commit

Permalink
Fixed endless Ocean. Can I go home now?
Browse files Browse the repository at this point in the history
  • Loading branch information
Andromander committed Feb 9, 2018
1 parent c1f3d97 commit b9363d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public GDBiomeProvider(World world) {
//Do not spawn in Volcanic, Goldstone or "Sacred" biomes
getBiomesToSpawnIn().clear();
getBiomesToSpawnIn().add(GDBiomes.pinkAgateForest);
getBiomesToSpawnIn().add(GDBiomes.blueAgateForest);
getBiomesToSpawnIn().add(GDBiomes.greenAgateForest);
getBiomesToSpawnIn().add(GDBiomes.purpleAgateForest);
getBiomesToSpawnIn().add(GDBiomes.crystalPlains);
// getBiomesToSpawnIn().add(GDBiomes.blueAgateForest);
// getBiomesToSpawnIn().add(GDBiomes.greenAgateForest);
// getBiomesToSpawnIn().add(GDBiomes.purpleAgateForest);
// getBiomesToSpawnIn().add(GDBiomes.crystalPlains);

makeLayers(world.getSeed());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public class GenLayerGDBiomes extends GenLayer {
private static final int RARE_BIOME_CHANCE = 15;
protected Biome commonBiomes[] = (new Biome[]{
GDBiomes.pinkAgateForest,
GDBiomes.blueAgateForest,
GDBiomes.greenAgateForest,
GDBiomes.purpleAgateForest,
GDBiomes.crystalPlains
});
protected Biome rareBiomes[] = (new Biome[]{
GDBiomes.fossilForest,
GDBiomes.volcaniclands
// GDBiomes.blueAgateForest,
// GDBiomes.greenAgateForest,
// GDBiomes.purpleAgateForest,
// GDBiomes.crystalPlains
});
// protected Biome rareBiomes[] = (new Biome[]{
// GDBiomes.fossilForest,
// GDBiomes.volcaniclands
// });

public GenLayerGDBiomes(long l, GenLayer genlayer) {
super(l);
Expand All @@ -37,7 +37,7 @@ public int[] getInts(int x, int z, int width, int depth) {
initChunkSeed(dx + x, dz + z);
if (nextInt(RARE_BIOME_CHANCE) == 0) {
//magic number!
dest[dx + dz * width] = Biome.getIdForBiome(rareBiomes[nextInt(rareBiomes.length)]);
// dest[dx + dz * width] = Biome.getIdForBiome(rareBiomes[nextInt(rareBiomes.length)]);
} else {
//aww...
dest[dx + dz * width] = Biome.getIdForBiome(commonBiomes[nextInt(commonBiomes.length)]);
Expand Down

0 comments on commit b9363d5

Please sign in to comment.