diff --git a/common/cpw/mods/fml/common/asm/FMLSanityChecker.java b/common/cpw/mods/fml/common/asm/FMLSanityChecker.java index be657fe551..9e806ec338 100644 --- a/common/cpw/mods/fml/common/asm/FMLSanityChecker.java +++ b/common/cpw/mods/fml/common/asm/FMLSanityChecker.java @@ -5,7 +5,7 @@ * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html - * + * * Contributors: * cpw - implementation */ diff --git a/common/cpw/mods/fml/common/asm/transformers/deobf/FMLDeobfuscatingRemapper.java b/common/cpw/mods/fml/common/asm/transformers/deobf/FMLDeobfuscatingRemapper.java index 401c3e63b3..5fee9445ec 100644 --- a/common/cpw/mods/fml/common/asm/transformers/deobf/FMLDeobfuscatingRemapper.java +++ b/common/cpw/mods/fml/common/asm/transformers/deobf/FMLDeobfuscatingRemapper.java @@ -76,6 +76,7 @@ public class FMLDeobfuscatingRemapper extends Remapper { { File libDir = new File(mcDir, "lib"); File mapData = new File(libDir, deobfFileName); + mapData = mapData.getCanonicalFile(); ZipFile mapZip = new ZipFile(mapData); ZipEntry classData = mapZip.getEntry("joined.srg"); ZipInputSupplier zis = new ZipInputSupplier(mapZip, classData); diff --git a/common/cpw/mods/fml/relauncher/FMLRelauncher.java b/common/cpw/mods/fml/relauncher/FMLRelauncher.java index e0df83f750..3fe3fe7b5d 100644 --- a/common/cpw/mods/fml/relauncher/FMLRelauncher.java +++ b/common/cpw/mods/fml/relauncher/FMLRelauncher.java @@ -5,7 +5,7 @@ * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html - * + * * Contributors: * cpw - implementation */ @@ -230,7 +230,6 @@ public class FMLRelauncher { showWindow(true); - appletClass = ReflectionHelper.getClass(classLoader, "net.minecraft.client.MinecraftApplet"); if (minecraftApplet.getClass().getClassLoader() == classLoader) { if (popupWindow != null) @@ -241,6 +240,7 @@ public class FMLRelauncher try { newApplet = minecraftApplet; + appletClass = ReflectionHelper.getClass(classLoader, "net.minecraft.client.MinecraftApplet"); ReflectionHelper.findMethod(appletClass, newApplet, new String[] { "fmlInitReentry" }).invoke(newApplet); return; } @@ -260,6 +260,7 @@ public class FMLRelauncher try { + appletClass = ReflectionHelper.getClass(classLoader, "net.minecraft.client.MinecraftApplet"); newApplet = appletClass.newInstance(); Object appletContainer = ReflectionHelper.getPrivateValue(ReflectionHelper.getClass(getClass().getClassLoader(), "java.awt.Component"), minecraftApplet, "parent"); diff --git a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java index cd45223cb6..178f354ed0 100644 --- a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java +++ b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java @@ -292,7 +292,9 @@ public class RelaunchLibraryManager { IFMLCallHook call = (IFMLCallHook) Class.forName(setupClass, true, actualClassLoader).newInstance(); Map callData = new HashMap(); + callData.put("mcLocation", mcDir); callData.put("classLoader", actualClassLoader); + callData.put("coremodLocation", pluginLocations.get(plugin)); callData.put("deobfuscationFileName", FMLInjectionData.debfuscationDataName()); call.injectData(callData); call.call();