mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Properly lookup random-ticked precipitation blocks (#7606)
This commit is contained in:
parent
f94af0f041
commit
905e5cdc31
1 changed files with 1 additions and 1 deletions
|
@ -126,13 +126,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
if (biomebase.shouldSnow(this, blockposition)) {
|
if (biomebase.shouldSnow(this, blockposition)) {
|
||||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition, Blocks.SNOW.defaultBlockState(), null); // CraftBukkit
|
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition, Blocks.SNOW.defaultBlockState(), null); // CraftBukkit
|
||||||
}
|
}
|
||||||
|
+ blockposition.setY(downY); // Paper
|
||||||
|
|
||||||
- BlockState iblockdata = this.getBlockState(blockposition1);
|
- BlockState iblockdata = this.getBlockState(blockposition1);
|
||||||
+ BlockState iblockdata = this.getBlockState(blockposition); // Paper
|
+ BlockState iblockdata = this.getBlockState(blockposition); // Paper
|
||||||
Biome.Precipitation biomebase_precipitation = biomebase.getPrecipitation();
|
Biome.Precipitation biomebase_precipitation = biomebase.getPrecipitation();
|
||||||
|
|
||||||
- if (biomebase_precipitation == Biome.Precipitation.RAIN && biomebase.coldEnoughToSnow(blockposition1)) {
|
- if (biomebase_precipitation == Biome.Precipitation.RAIN && biomebase.coldEnoughToSnow(blockposition1)) {
|
||||||
+ blockposition.setY(downY); // Paper
|
|
||||||
+ if (biomebase_precipitation == Biome.Precipitation.RAIN && biomebase.coldEnoughToSnow(blockposition)) { // Paper
|
+ if (biomebase_precipitation == Biome.Precipitation.RAIN && biomebase.coldEnoughToSnow(blockposition)) { // Paper
|
||||||
biomebase_precipitation = Biome.Precipitation.SNOW;
|
biomebase_precipitation = Biome.Precipitation.SNOW;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue