46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
|
--- ../vanillamcp/src-reference/minecraft_server/net/minecraft/server/MinecraftServer.java 0000-00-00 00:00:00.000000000 -0000
|
||
|
+++ ../vanillamcp/src-work/minecraft_server/net/minecraft/server/MinecraftServer.java 0000-00-00 00:00:00.000000000 -0000
|
||
|
@@ -13,6 +13,9 @@
|
||
|
import java.util.Random;
|
||
|
import java.util.logging.Level;
|
||
|
import java.util.logging.Logger;
|
||
|
+
|
||
|
+import fml.FMLHooks;
|
||
|
+import fml.obf.FMLHandler;
|
||
|
import net.minecraft.src.AnvilSaveConverter;
|
||
|
import net.minecraft.src.AnvilSaveHandler;
|
||
|
import net.minecraft.src.AxisAlignedBB;
|
||
|
@@ -143,6 +146,7 @@
|
||
|
var1.setDaemon(true);
|
||
|
var1.start();
|
||
|
ConsoleLogManager.init();
|
||
|
+ FMLHandler.INSTANCE.onPreLoad(this);
|
||
|
logger.info("Starting minecraft server version 1.2.4");
|
||
|
|
||
|
if (Runtime.getRuntime().maxMemory() / 1024L / 1024L < 512L)
|
||
|
@@ -190,6 +194,8 @@
|
||
|
logger.warning("To change this, set \"online-mode\" to \"true\" in the server.settings file.");
|
||
|
}
|
||
|
|
||
|
+ FMLHandler.INSTANCE.onLoadComplete();
|
||
|
+
|
||
|
this.configManager = new ServerConfigurationManager(this);
|
||
|
this.entityTracker[0] = new EntityTracker(this, 0);
|
||
|
this.entityTracker[1] = new EntityTracker(this, -1);
|
||
|
@@ -433,6 +439,7 @@
|
||
|
var3 += var7;
|
||
|
var1 = var5;
|
||
|
|
||
|
+ FMLHandler.INSTANCE.onPreTick();
|
||
|
if (this.worldMngr[0].isAllPlayersFullyAsleep())
|
||
|
{
|
||
|
this.doTick();
|
||
|
@@ -446,6 +453,7 @@
|
||
|
this.doTick();
|
||
|
}
|
||
|
}
|
||
|
+ FMLHandler.INSTANCE.onPostTick();
|
||
|
}
|
||
|
}
|
||
|
else
|