Skip to content

Commit

Permalink
Fix snow accumulating in custom biomes without precipitation (#11854)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Jan 11, 2025
1 parent b242f1e commit 3e42518
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 3e42518

Please sign in to comment.