1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-18 23:23:19 +01:00

Fix snow accumulating in custom biomes without precipitation ()

This commit is contained in:
Shane Bee 2025-01-11 02:10:32 -08:00 committed by GitHub
parent b242f1eb15
commit 3e42518b34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,11 @@
--- a/net/minecraft/world/level/biome/Biome.java
+++ b/net/minecraft/world/level/biome/Biome.java
@@ -176,7 +_,7 @@
}
public boolean shouldSnow(LevelReader level, BlockPos pos) {
- if (this.warmEnoughToRain(pos, level.getSeaLevel())) {
+ if (this.getPrecipitationAt(pos, level.getSeaLevel()) != Precipitation.SNOW) { // Paper - Fixes MC-248212
return false;
} else {
if (level.isInsideBuildHeight(pos.getY()) && level.getBrightness(LightLayer.BLOCK, pos) < 10) {