diff options
author | tahg <tahgtahv@gmail.com> | 2011-08-07 00:45:56 -0300 |
---|---|---|
committer | tahg <tahgtahv@gmail.com> | 2011-08-07 00:45:56 -0300 |
commit | effc6c855934ab2d48bfc87f1984e541226af256 (patch) | |
tree | e089b278aa54415e477742a9ed9f03b27c145a96 /src/main/java/net/minecraft/server/MinecraftServer.java | |
parent | bb89847632b02d683497193b700a0698768b508e (diff) | |
download | craftbukkit-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/java/net/minecraft/server/MinecraftServer.java')
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 3 |
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(); |