mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Slight tweak to early loading, to accommodate FMP
This commit is contained in:
1 parent
1164ace8df
commit
dd09da27b5
4 files changed
+13
-14
No files matched your search
@@ -13,7 +13,6 @@
|
||||
package net.minecraftforge.fml.server;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -74,22 +73,22 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
* A reference to the server itself
|
||||
*/
|
||||
private MinecraftServer server;
|
||||
|
||||
private List<String> injectedModContainers;
|
||||
private FMLServerHandler()
|
||||
{
|
||||
FMLCommonHandler.instance().beginLoading(this);
|
||||
injectedModContainers = FMLCommonHandler.instance().beginLoading(this);
|
||||
}
|
||||
/**
|
||||
* Called to start the whole game off from
|
||||
* {@link MinecraftServer#startServer}
|
||||
*
|
||||
* @param minecraftServer
|
||||
* @param minecraftServer server
|
||||
*/
|
||||
@Override
|
||||
public void beginServerLoading(MinecraftServer minecraftServer)
|
||||
{
|
||||
server = minecraftServer;
|
||||
Loader.instance().loadMods();
|
||||
Loader.instance().loadMods(injectedModContainers);
|
||||
Loader.instance().preinitializeMods();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user