diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-04-25 21:57:22 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-04-25 21:57:22 -0400 |
commit | 57bc71df0ebd02b460287aa5faa7b634c21d1669 (patch) | |
tree | dd9a4a63661e4f07bd11710540b5d35a9ab8dbfa /src/main | |
parent | 8f4ce0988c9f3ca44f768c790ce7fdf755c92d07 (diff) | |
download | craftbukkit-57bc71df0ebd02b460287aa5faa7b634c21d1669.tar craftbukkit-57bc71df0ebd02b460287aa5faa7b634c21d1669.tar.gz craftbukkit-57bc71df0ebd02b460287aa5faa7b634c21d1669.tar.lz craftbukkit-57bc71df0ebd02b460287aa5faa7b634c21d1669.tar.xz craftbukkit-57bc71df0ebd02b460287aa5faa7b634c21d1669.zip |
Fixed sleeping.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index b5327cae..aa3842cb 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1517,6 +1517,7 @@ public class World implements IBlockAccess { if (j <= 0) { CraftServer server = ((WorldServer) this).getServer(); + WeatherChangeEvent weather = new WeatherChangeEvent(((WorldServer) this).getWorld(), !this.worldData.l()); server.getPluginManager().callEvent(weather); if (!weather.isCancelled()) { @@ -1561,10 +1562,10 @@ public class World implements IBlockAccess { // CraftBukkit start CraftServer server = ((WorldServer) this).getServer(); - WeatherChangeEvent weather = new WeatherChangeEvent((org.bukkit.World) this, false); + WeatherChangeEvent weather = new WeatherChangeEvent(((WorldServer) this).getWorld(), false); server.getPluginManager().callEvent(weather); - ThunderChangeEvent thunder = new ThunderChangeEvent((org.bukkit.World) this, false); + ThunderChangeEvent thunder = new ThunderChangeEvent(((WorldServer) this).getWorld(), false); server.getPluginManager().callEvent(thunder); if (!weather.isCancelled()) { this.worldData.c(0); |