summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 2574bee4..b3276695 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -771,6 +771,7 @@ public class CraftWorld implements World {
public void setStorm(boolean hasStorm) {
world.worldData.setStorm(hasStorm);
+ setWeatherDuration(0); // Reset weather duration (legacy behaviour)
}
public int getWeatherDuration() {
@@ -787,6 +788,7 @@ public class CraftWorld implements World {
public void setThundering(boolean thundering) {
world.worldData.setThundering(thundering);
+ setThunderDuration(0); // Reset weather duration (legacy behaviour)
}
public int getThunderDuration() {