mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 11:17:20 +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:
1 parent
5edaf6a5a2
commit
393334a261
1 file changed
+9
-11
@@ -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