Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vegetation and temperature values #1486

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public boolean test(EventReplaceBiome event, VoronoiGenerator.VoronoiInfo info)
Climate.TargetPoint centerTargetPoint = event.getClimateSampler().sample((int)Math.floor(rareBiomeCenter.x), event.getY(), (int)Math.floor(rareBiomeCenter.z));
float f = Climate.unquantizeCoord(centerTargetPoint.continentalness());
float f1 = Climate.unquantizeCoord(centerTargetPoint.erosion());
float f2 = Climate.unquantizeCoord(centerTargetPoint.temperature());
float f3 = Climate.unquantizeCoord(centerTargetPoint.humidity());
float f2 = Climate.unquantizeCoord(centerTargetPoint.humidity());
float f3 = Climate.unquantizeCoord(centerTargetPoint.temperature());
float f4 = Climate.unquantizeCoord(centerTargetPoint.weirdness());
//for these values, sample the center of the possible biome instead of every quad
if (continentalness != null && continentalness.length >= 2 && (f < continentalness[0] || f > continentalness[1])) {
Expand Down Expand Up @@ -102,8 +102,8 @@ public boolean test(int x, int y, int z, float unquantizedDepth, Climate.Sampler
Climate.TargetPoint centerTargetPoint = climateSampler.sample((int)Math.floor(rareBiomeCenter.x), y, (int)Math.floor(rareBiomeCenter.z));
float f = Climate.unquantizeCoord(centerTargetPoint.continentalness());
float f1 = Climate.unquantizeCoord(centerTargetPoint.erosion());
float f2 = Climate.unquantizeCoord(centerTargetPoint.temperature());
float f3 = Climate.unquantizeCoord(centerTargetPoint.humidity());
float f2 = Climate.unquantizeCoord(centerTargetPoint.humidity());
float f3 = Climate.unquantizeCoord(centerTargetPoint.temperature());
float f4 = Climate.unquantizeCoord(centerTargetPoint.weirdness());
//for these values, sample the center of the possible biome instead of every quad
if (continentalness != null && continentalness.length >= 2 && (f < continentalness[0] || f > continentalness[1])) {
Expand Down