From effc6c855934ab2d48bfc87f1984e541226af256 Mon Sep 17 00:00:00 2001 From: tahg Date: Sun, 7 Aug 2011 00:45:56 -0300 Subject: [PATCH] Fix placement of scheduler tick --- src/main/java/net/minecraft/server/MinecraftServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index a5d9d05c23..c1f13d0c09 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -425,6 +425,8 @@ public class MinecraftServer implements Runnable, ICommandListener { Vec3D.a(); ++this.ticks; + ((CraftScheduler) this.server.getScheduler()).mainThreadHeartbeat(this.ticks); + for (j = 0; j < this.worlds.size(); ++j) { // CraftBukkit // if (j == 0 || this.propertyManager.getBoolean("allow-nether", true)) { // CraftBukkit WorldServer worldserver = this.worlds.get(j); // CraftBukkit @@ -437,7 +439,6 @@ public class MinecraftServer implements Runnable, ICommandListener { } } - ((CraftScheduler) this.server.getScheduler()).mainThreadHeartbeat(this.ticks); // CraftBukkit end worldserver.doTick();