mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Don't enforce signatures on minecraft classes
This commit is contained in:
1 parent
a696db5a21
commit
f0495a8abc
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user