Skip to content

Commit

Permalink
Refined nether biomes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 24, 2024
1 parent ef3bdfe commit 4ad149f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,15 @@ private Biome getVanillaBiome(WorldInfo worldInfo, int x, int y, int z, BiomePar
}

private @NonNull Biome getNetherBiome(BiomeParameterPoint bpb) {
if (bpb.getTemperature() == -0.5D && bpb.getHumidity() == 0.0D) {
double temp = Math.round(bpb.getTemperature() * 10.0) / 10.0;
double humidity = Math.round(bpb.getHumidity() * 10.0) / 10.0;
if (temp == -0.5D && humidity == 0.0D) {
return Biome.BASALT_DELTAS;
} else if (bpb.getTemperature() == 0.4D && bpb.getHumidity() == 0.0D) {
} else if (temp == 0.4D && humidity == 0.0D) {
return Biome.CRIMSON_FOREST;
} else if (bpb.getTemperature() == 0.0D && bpb.getHumidity() == -0.5D) {
} else if (temp == 0.0D && humidity == -0.5D) {
return Biome.SOUL_SAND_VALLEY;
} else if (bpb.getTemperature() == -0.5D && bpb.getHumidity() == 0.5D) {
} else if (temp == -0.5D && humidity == 0.5D) {
return Biome.WARPED_FOREST;
}

Expand Down

0 comments on commit 4ad149f

Please sign in to comment.