mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Update ClassPath.java
Fix'd network stuff, may need to edit the Runtime remap for certain clients to run. Or comment out the whole Runtime remap in ClassRemapper, your choice.
This commit is contained in:
@@ -193,16 +193,14 @@ public class ClassPath {
|
||||
* @param inputstream
|
||||
* @throws IOException
|
||||
*/
|
||||
protected void loadClass(InputStream in) throws IOException {
|
||||
ClassReader cr = new ClassReader(in);
|
||||
ClassNode cn = new ClassNode();
|
||||
cr.accept(cn, 0);
|
||||
/*RemappingClassAdapter rca = new RemappingClassAdapter(cn,classRemapper);
|
||||
ClassNode remapped = new ClassNode();
|
||||
cn.accept(rca);*/
|
||||
classNames.add(cn.name.replace('/', '.'));
|
||||
classes.put(cn.name, cn);
|
||||
}
|
||||
protected void loadClass(InputStream in) throws IOException {
|
||||
ClassReader cr = new ClassReader(in);
|
||||
ClassNode cn = new ClassNode();
|
||||
RemappingClassAdapter rca = new RemappingClassAdapter(cn,classRemapper);
|
||||
cr.accept(rca, ClassReader.EXPAND_FRAMES);
|
||||
classes.put(cn.name, cn);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Determines if this classpath represents a jar file
|
||||
@@ -301,4 +299,4 @@ public class ClassPath {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user