Don't enforce signatures on minecraft classes

This commit is contained in:
Christian 2013-03-02 14:48:08 -05:00
parent b1e826eb62
commit 879213019b
1 changed files with 2 additions and 2 deletions

View File

@ -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)