From 879213019b5af81f16d8385a5fb987b929983634 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 2 Mar 2013 14:48:08 -0500 Subject: [PATCH] Don't enforce signatures on minecraft classes --- fml/common/cpw/mods/fml/relauncher/RelaunchClassLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fml/common/cpw/mods/fml/relauncher/RelaunchClassLoader.java b/fml/common/cpw/mods/fml/relauncher/RelaunchClassLoader.java index 3ddde7c27..df6f781ae 100644 --- a/fml/common/cpw/mods/fml/relauncher/RelaunchClassLoader.java +++ b/fml/common/cpw/mods/fml/relauncher/RelaunchClassLoader.java @@ -140,7 +140,7 @@ public class RelaunchClassLoader extends URLClassLoader String fName = untransformedName.replace('.', '/').concat(".class"); String pkgPath = pkgname.replace('.', '/'); URLConnection urlConnection = findCodeSourceConnectionFor(fName); - if (urlConnection instanceof JarURLConnection && lastDot > -1) + if (urlConnection instanceof JarURLConnection && lastDot > -1 && !untransformedName.startsWith("net.minecraft.")) { JarURLConnection jarUrlConn = (JarURLConnection)urlConnection; JarFile jf = jarUrlConn.getJarFile(); @@ -169,7 +169,7 @@ public class RelaunchClassLoader extends URLClassLoader } } } - else if (lastDot > -1) + else if (lastDot > -1 && !untransformedName.startsWith("net.minecraft.")) { Package pkg = getPackage(pkgname); if (pkg == null)