summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-12-10 12:20:24 -0500
committerEvilSeph <evilseph@gmail.com>2011-12-10 12:20:24 -0500
commit32a913a2223ddc37fc35c96e62247683901c640f (patch)
tree31aa918ef53dd8ae376cc38950ac467e72d983a0 /src/main/java/org
parentf7649724fec56980b526e4d7fe4e9908df532740 (diff)
downloadcraftbukkit-32a913a2223ddc37fc35c96e62247683901c640f.tar
craftbukkit-32a913a2223ddc37fc35c96e62247683901c640f.tar.gz
craftbukkit-32a913a2223ddc37fc35c96e62247683901c640f.tar.lz
craftbukkit-32a913a2223ddc37fc35c96e62247683901c640f.tar.xz
craftbukkit-32a913a2223ddc37fc35c96e62247683901c640f.zip
Linked thundering and storming.
Diffstat (limited to 'src/main/java/org')
-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();
}