Moved transformer wrappers to a separate package (should fix signing errors), fixed debug mods not loading in forgedev (string comparison).

This commit is contained in:
RainWarrior committed 2015-02-14 05:17:14 +03:00
1 parent 316ec27e77
commit 68efb9d6f4
2 files changed
+3 -10

No files matched your search

@@ -67,7 +67,7 @@ public class ModClassLoader extends URLClassLoader
for(URL url : mainClassLoader.getSources())
{
URI uri = url.toURI();
if(uri.getScheme() == "file")
if(uri.getScheme().equals("file"))
{
files.add(new File(uri));
}
@@ -103,14 +103,7 @@ public class ASMTransformerWrapper
@Override
public InputStream getInputStream()
{
try
{
return new ByteArrayInputStream(wrapperCache.get(file));
}
catch (ExecutionException e)
{
throw new RuntimeException(e);
}
return new ByteArrayInputStream(wrapperCache.getUnchecked(file));
}
@Override
@@ -182,7 +175,7 @@ public class ASMTransformerWrapper
private static String getWrapperName(String parentClass)
{
return parentClass + "_$Wrapper";
return "$wrapper." + parentClass;
}
private static class WrapperVisitor extends ClassVisitor