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