Fix hardcoded precipitation in ClimateSettingsBuilder (#9402)

This effectively caused all biomes to have precipitation, such as
minecraft:desert.

Fixes #9397
This commit is contained in:
sciwhiz12 authored and GitHub committed 2023-03-20 08:56:10 +01:00
1 parent 3cd758647d
commit 73e68c9322
1 file changed
+1 -2
@@ -6,7 +6,6 @@
package net.minecraftforge.common.world;
import net.minecraft.world.level.biome.Biome.ClimateSettings;
import net.minecraft.world.level.biome.Biome.Precipitation;
import net.minecraft.world.level.biome.Biome.TemperatureModifier;
/**
@@ -56,7 +55,7 @@ public class ClimateSettingsBuilder
*/
public ClimateSettings build()
{
return new ClimateSettings(true, this.temperature, this.temperatureModifier, this.downfall);
return new ClimateSettings(this.hasPrecipitation, this.temperature, this.temperatureModifier, this.downfall);
}
/**