summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorRaphfrk <raphfrk@gmail.com>2011-02-02 23:53:04 +0000
committerErik Broes <erikbroes@grum.nl>2011-02-07 01:03:32 +0100
commit9e7991ab528cfc195200e342cd022ab3f63de3f6 (patch)
tree0bbfbafc83376b0e2f2f57c129aae76d0b20f9db /src/main/java/net/minecraft/server
parentb64667cde4ad0281a51fb2738010a80da44862f9 (diff)
downloadcraftbukkit-9e7991ab528cfc195200e342cd022ab3f63de3f6.tar
craftbukkit-9e7991ab528cfc195200e342cd022ab3f63de3f6.tar.gz
craftbukkit-9e7991ab528cfc195200e342cd022ab3f63de3f6.tar.lz
craftbukkit-9e7991ab528cfc195200e342cd022ab3f63de3f6.tar.xz
craftbukkit-9e7991ab528cfc195200e342cd022ab3f63de3f6.zip
Scheduler
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index 5fcff48f..887a68dd 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -17,6 +17,7 @@ import java.net.UnknownHostException;
import joptsimple.OptionSet;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.craftbukkit.CraftServer;
+import org.bukkit.craftbukkit.scheduler.CraftScheduler;
// CraftBukkit end
public class MinecraftServer implements ICommandListener, Runnable {
@@ -275,6 +276,10 @@ public class MinecraftServer implements ICommandListener, Runnable {
this.e.f();
+ // CraftBukkit start
+ ((CraftScheduler) server.getScheduler()).mainThreadHeartbeat(this.h);
+ // CraftBukkit end
+
while (this.e.d()) {
;
}