summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authortahg <tahgtahv@gmail.com>2011-08-07 00:45:56 -0300
committertahg <tahgtahv@gmail.com>2011-08-07 00:45:56 -0300
commiteffc6c855934ab2d48bfc87f1984e541226af256 (patch)
treee089b278aa54415e477742a9ed9f03b27c145a96 /src/main
parentbb89847632b02d683497193b700a0698768b508e (diff)
downloadcraftbukkit-effc6c855934ab2d48bfc87f1984e541226af256.tar
craftbukkit-effc6c855934ab2d48bfc87f1984e541226af256.tar.gz
craftbukkit-effc6c855934ab2d48bfc87f1984e541226af256.tar.lz
craftbukkit-effc6c855934ab2d48bfc87f1984e541226af256.tar.xz
craftbukkit-effc6c855934ab2d48bfc87f1984e541226af256.zip
Fix placement of scheduler tick
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index a5d9d05c..c1f13d0c 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();