mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Improve server console implementation (#4821)
This commit is contained in:
1 parent
43895d773e
commit
1db28d072a
18 files changed
+1106
-554
No files matched your search
@@ -37,7 +37,7 @@ public class FMLServerTweaker extends FMLTweaker {
|
||||
|
||||
if (System.getProperty("log4j.configurationFile") == null)
|
||||
{
|
||||
System.setProperty("log4j.configurationFile", "log4j2.xml");
|
||||
System.setProperty("log4j.configurationFile", "log4j2_server.xml");
|
||||
((LoggerContext) LogManager.getContext(false)).reconfigure();
|
||||
}
|
||||
}
|
||||
@@ -55,9 +55,9 @@ public class FMLServerTweaker extends FMLTweaker {
|
||||
// and deobfuscated parts of the code. Without, the UI won't show anything
|
||||
classLoader.addClassLoaderExclusion("com.mojang.util.QueueLogAppender");
|
||||
|
||||
classLoader.addClassLoaderExclusion("jline.");
|
||||
classLoader.addClassLoaderExclusion("org.fusesource.");
|
||||
classLoader.addClassLoaderExclusion("net.minecraftforge.server.console.log4j.TerminalConsoleAppender");
|
||||
classLoader.addClassLoaderExclusion("org.jline.");
|
||||
classLoader.addClassLoaderExclusion("com.sun.jna.");
|
||||
classLoader.addClassLoaderExclusion("net.minecraftforge.server.terminalconsole.");
|
||||
|
||||
FMLLaunchHandler.configureForServerLaunch(classLoader, this);
|
||||
FMLLaunchHandler.appendCoreMods();
|
||||
|
||||
Reference in new issue
Block a user