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 2015-02-14 05:17:14 +03:00
parent 316ec27e77
commit 68efb9d6f4
2 changed files with 3 additions and 10 deletions

View file

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

View file

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