From 8cfca4376f698cff3aa2b93f3d8c73f22edafe3a Mon Sep 17 00:00:00 2001 From: Minecrell Date: Fri, 16 Jan 2015 23:15:17 +0100 Subject: [PATCH] Exclude only log4j2 queue from class loader Right now the complete com.mojang package is excluded from the LaunchClassLoader on the server. This means mods can't transform authlib for example which doesn't need to be excluded for the UI to work. By excluding only the specific log4j2 QueueLogAppender, mods can also transform the classes in the com.mojang.authlib package. --- .../fml/common/launcher/FMLServerTweaker.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fml/src/main/java/net/minecraftforge/fml/common/launcher/FMLServerTweaker.java b/fml/src/main/java/net/minecraftforge/fml/common/launcher/FMLServerTweaker.java index 6e38da8c53..cdf1890ab7 100644 --- a/fml/src/main/java/net/minecraftforge/fml/common/launcher/FMLServerTweaker.java +++ b/fml/src/main/java/net/minecraftforge/fml/common/launcher/FMLServerTweaker.java @@ -13,9 +13,9 @@ public class FMLServerTweaker extends FMLTweaker { @Override public void injectIntoClassLoader(LaunchClassLoader classLoader) { - // The mojang packages are excluded so the log4j2 queue is correctly visible from - // the obfuscated and deobfuscated parts of the code. Without, the UI won't show anything - classLoader.addClassLoaderExclusion("com.mojang."); + // The log4j2 queue is excluded so it is correctly visible from the obfuscated + // and deobfuscated parts of the code. Without, the UI won't show anything + classLoader.addClassLoaderExclusion("com.mojang.util.QueueLogAppender"); classLoader.addTransformerExclusion("net.minecraftforge.fml.repackage."); classLoader.addTransformerExclusion("net.minecraftforge.fml.relauncher."); classLoader.addTransformerExclusion("net.minecraftforge.fml.common.asm.transformers.");