Changed temperature generator to return float.

This commit is contained in:
Harrison Deng 2020-04-20 16:18:33 -05:00
parent 37aa598d8f
commit c9dd2a1c4b

View File

@ -14,7 +14,7 @@ class TemperatureMapGenerator {
noiseGenerator.setScale(0.0008D);
}
public double getTemperature(int worldX, int worldZ) {
return noiseGenerator.noise(worldX, worldZ, frequency, amplitude, true);
public float getTemperature(int worldX, int worldZ) {
return (float) noiseGenerator.noise(worldX, worldZ, frequency, amplitude, true);
}
}