Archiviert
13
0

Fixed sleeping.

Dieser Commit ist enthalten in:
EvilSeph 2011-04-25 21:57:22 -04:00
Ursprung 8f4ce0988c
Commit 57bc71df0e

Datei anzeigen

@ -1517,6 +1517,7 @@ public class World implements IBlockAccess {
if (j <= 0) { if (j <= 0) {
CraftServer server = ((WorldServer) this).getServer(); CraftServer server = ((WorldServer) this).getServer();
WeatherChangeEvent weather = new WeatherChangeEvent(((WorldServer) this).getWorld(), !this.worldData.l()); WeatherChangeEvent weather = new WeatherChangeEvent(((WorldServer) this).getWorld(), !this.worldData.l());
server.getPluginManager().callEvent(weather); server.getPluginManager().callEvent(weather);
if (!weather.isCancelled()) { if (!weather.isCancelled()) {
@ -1561,10 +1562,10 @@ public class World implements IBlockAccess {
// CraftBukkit start // CraftBukkit start
CraftServer server = ((WorldServer) this).getServer(); 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); 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); server.getPluginManager().callEvent(thunder);
if (!weather.isCancelled()) { if (!weather.isCancelled()) {
this.worldData.c(0); this.worldData.c(0);