SPIGOT-8029: Do not load rain into nether when it won't be updated / can't rain

This commit is contained in:
md_5 2025-03-30 09:29:15 +11:00
parent 3f917b07bb
commit 20401f1c9f
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -295,7 +295,19 @@
this.getChunkAt(blockposition).addAndRegisterBlockEntity(tileentity);
}
}
@@ -915,7 +1117,7 @@
@@ -574,6 +776,11 @@
}
protected void prepareWeather() {
+ // CraftBukkit start - SPIGOT-8029: consistent with WorldServer#advanceWeatherCycle
+ if (!this.dimensionType().hasSkyLight()) {
+ return;
+ }
+ // CraftBukkit end
if (this.levelData.isRaining()) {
this.rainLevel = 1.0F;
if (this.levelData.isThundering()) {
@@ -915,7 +1122,7 @@
public static enum a implements INamable {