mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
Fix up a couple of small network related issues. Fix up the server launching fml properly.
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
--- ../src-base/common/net/minecraft/src/DedicatedServer.java
|
|
+++ ../src-work/common/net/minecraft/src/DedicatedServer.java
|
|
@@ -1,5 +1,6 @@
|
|
package net.minecraft.src;
|
|
|
|
+import cpw.mods.fml.common.FMLCommonHandler;
|
|
import cpw.mods.fml.common.Side;
|
|
import cpw.mods.fml.common.asm.SideOnly;
|
|
import java.io.File;
|
|
@@ -36,6 +37,7 @@
|
|
var1.start();
|
|
ConsoleLogManager.func_73699_a();
|
|
field_71306_a.info("Starting minecraft server version 1.3.1");
|
|
+ FMLCommonHandler.instance().onServerStart(this);
|
|
|
|
if (Runtime.getRuntime().maxMemory() / 1024L / 1024L < 512L)
|
|
{
|
|
@@ -101,6 +103,7 @@
|
|
field_71306_a.warning("To change this, set \"online-mode\" to \"true\" in the server.properties file.");
|
|
}
|
|
|
|
+ FMLCommonHandler.instance().onServerStarted();
|
|
this.func_71210_a(new DedicatedPlayerList(this));
|
|
long var4 = System.nanoTime();
|
|
|
|
@@ -160,7 +163,7 @@
|
|
this.field_71339_n = new RConThreadMain(this);
|
|
this.field_71339_n.func_72602_a();
|
|
}
|
|
-
|
|
+ FMLCommonHandler.instance().handleServerStarting(this);
|
|
return true;
|
|
}
|
|
|