2012-08-09 02:57:37 +00:00
|
|
|
--- ../src-base/common/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ ../src-work/common/net/minecraft/server/MinecraftServer.java
|
|
|
|
@@ -13,6 +13,9 @@
|
2012-08-02 04:38:30 +00:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.logging.Level;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
+import cpw.mods.fml.common.FMLCommonHandler;
|
|
|
|
+import cpw.mods.fml.relauncher.ArgsWrapper;
|
|
|
|
+import cpw.mods.fml.relauncher.FMLRelauncher;
|
|
|
|
import net.minecraft.src.AnvilSaveConverter;
|
|
|
|
import net.minecraft.src.AxisAlignedBB;
|
|
|
|
import net.minecraft.src.CallableIsServerModded;
|
2012-08-10 21:11:01 +00:00
|
|
|
@@ -364,7 +367,10 @@
|
2012-08-02 04:38:30 +00:00
|
|
|
{
|
|
|
|
if (this.func_71197_b())
|
|
|
|
{
|
|
|
|
+ FMLCommonHandler.instance().handleServerStarted();
|
|
|
|
long var1 = System.currentTimeMillis();
|
2012-08-10 21:11:01 +00:00
|
|
|
+
|
|
|
|
+ FMLCommonHandler.instance().onWorldLoadTick(field_71305_c);
|
2012-08-02 04:38:30 +00:00
|
|
|
|
|
|
|
for (long var50 = 0L; this.field_71317_u; this.field_71296_Q = true)
|
2012-08-10 21:11:01 +00:00
|
|
|
{
|
|
|
|
@@ -403,6 +409,7 @@
|
2012-08-02 04:38:30 +00:00
|
|
|
|
|
|
|
Thread.sleep(1L);
|
|
|
|
}
|
|
|
|
+ FMLCommonHandler.instance().handleServerStopping();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-08-10 21:11:01 +00:00
|
|
|
@@ -466,9 +473,11 @@
|
|
|
|
|
|
|
|
public void func_71217_p()
|
|
|
|
{
|
|
|
|
+ FMLCommonHandler.instance().rescheduleTicks(Side.SERVER);
|
|
|
|
long var1 = System.nanoTime();
|
|
|
|
AxisAlignedBB.func_72332_a().func_72298_a();
|
|
|
|
Vec3.func_72437_a().func_72343_a();
|
|
|
|
+ FMLCommonHandler.instance().onPreServerTick();
|
|
|
|
++this.field_71315_w;
|
|
|
|
|
|
|
|
if (this.field_71295_T)
|
|
|
|
@@ -514,6 +523,7 @@
|
|
|
|
|
|
|
|
this.field_71304_b.func_76319_b();
|
|
|
|
this.field_71304_b.func_76319_b();
|
|
|
|
+ FMLCommonHandler.instance().onPostServerTick();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void func_71190_q()
|
|
|
|
@@ -537,7 +547,9 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
this.field_71304_b.func_76320_a("tick");
|
|
|
|
+ FMLCommonHandler.instance().onPreWorldTick(var4);
|
|
|
|
var4.func_72835_b();
|
|
|
|
+ FMLCommonHandler.instance().onPostWorldTick(var4);
|
|
|
|
this.field_71304_b.func_76318_c("lights");
|
|
|
|
|
|
|
|
while (true)
|
|
|
|
@@ -1117,6 +1129,12 @@
|
2012-08-09 02:57:37 +00:00
|
|
|
@SideOnly(Side.SERVER)
|
2012-08-02 04:38:30 +00:00
|
|
|
public static void main(String[] p_main_0_)
|
|
|
|
{
|
|
|
|
+ FMLRelauncher.handleServerRelaunch(new ArgsWrapper(p_main_0_));
|
|
|
|
+ }
|
2012-08-09 02:57:37 +00:00
|
|
|
+ @SideOnly(Side.SERVER)
|
2012-08-02 04:38:30 +00:00
|
|
|
+ public static void fmlReentry(ArgsWrapper wrap)
|
|
|
|
+ {
|
|
|
|
+ String[] p_main_0_ = wrap.args;
|
|
|
|
StatList.func_75919_a();
|
|
|
|
|
|
|
|
try
|