From 20401f1c9ff12173ba41cd630b39340d20574b3d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 30 Mar 2025 09:29:15 +1100 Subject: [PATCH] SPIGOT-8029: Do not load rain into nether when it won't be updated / can't rain --- nms-patches/net/minecraft/world/level/World.patch | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/level/World.patch b/nms-patches/net/minecraft/world/level/World.patch index cdc3c3d3f..3fdc9bd01 100644 --- a/nms-patches/net/minecraft/world/level/World.patch +++ b/nms-patches/net/minecraft/world/level/World.patch @@ -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 {