Skip to content

Commit

Permalink
Casted ints to doubles in BasicWorldGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 3, 2021
1 parent 53ba3ec commit e9ae0d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public void getNoise(BiomeGenerator biomeGenerator, double[] buffer, int scaledX
Biome biome = biomeGenerator.getZoomedOutBiome(scaledX, scaledZ);
double noiseScaleHorizontal = config.getDouble("biomes." + biome.name() + ".scale", 10D);
double height = config.getDouble("biomes." + biome.name() + ".height", 8D);
double x = (((scaledX*4) % dist) / 4) / noiseScaleHorizontal;
double z = (((scaledZ*4) % dist) / 4) / noiseScaleHorizontal;
double x = ((((double)scaledX*4) % dist) / 4) / noiseScaleHorizontal;
double z = ((((double)scaledZ*4) % dist) / 4) / noiseScaleHorizontal;

for (int y = 0; y < buffer.length; y++) {
double noise = this.mainNoiseGenerator.noise(x, y, z);
Expand Down

0 comments on commit e9ae0d7

Please sign in to comment.