summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 553bb1bd..45035b0e 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -590,10 +590,11 @@ public class CraftWorld implements World {
}
public boolean isThundering() {
- return world.worldData.isThundering();
+ return hasStorm() && world.worldData.isThundering();
}
public void setThundering(boolean thundering) {
+ if (thundering && !hasStorm()) setStorm(true);
CraftServer server = world.getServer();
ThunderChangeEvent thunder = new ThunderChangeEvent((org.bukkit.World) this, thundering);
@@ -886,9 +887,9 @@ public class CraftWorld implements World {
if (getClass() != obj.getClass()) {
return false;
}
-
+
final CraftWorld other = (CraftWorld) obj;
-
+
return this.getUID() == other.getUID();
}