mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-11-30 12:54:33 +01:00
Casted ints to doubles in BasicWorldGenerator
This commit is contained in:
parent
53ba3ec6dd
commit
e9ae0d7a98
@ -42,8 +42,8 @@ public class BasicWorldGenerator implements BaseNoiseGenerator {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user