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 (#11854)
This commit is contained in:
parent
b242f1eb15
commit
3e42518b34
1 changed files with 11 additions and 0 deletions
|
@ -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) {
|
Loading…
Reference in a new issue