Archiviert
13
0

Fixed the Bukkit Scheduler.

Dieser Commit ist enthalten in:
EvilSeph 2011-05-26 17:29:57 -04:00
Ursprung 9934dd8561
Commit 036f49ddbf

Datei anzeigen

@ -242,7 +242,7 @@ public class MinecraftServer implements Runnable, ICommandListener {
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld()); WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());
server.getPluginManager().callEvent(event); server.getPluginManager().callEvent(event);
} }
WorldServer world = this.worlds.get(0); WorldServer world = this.worlds.get(0);
if (!world.E) { if (!world.E) {
this.serverConfigurationManager.savePlayers(); this.serverConfigurationManager.savePlayers();
@ -379,9 +379,11 @@ public class MinecraftServer implements Runnable, ICommandListener {
EntityPlayer entityplayer = (EntityPlayer) this.serverConfigurationManager.players.get(i); EntityPlayer entityplayer = (EntityPlayer) this.serverConfigurationManager.players.get(i);
entityplayer.netServerHandler.sendPacket(new Packet4UpdateTime(entityplayer.world.getTime())); entityplayer.netServerHandler.sendPacket(new Packet4UpdateTime(entityplayer.world.getTime()));
} }
// Craftbukkit end
} }
((CraftScheduler) server.getScheduler()).mainThreadHeartbeat(this.ticks);
// Craftbukkit end
worldserver.doTick(); worldserver.doTick();
while (worldserver.doLighting()) { while (worldserver.doLighting()) {