From 393334a2617a30b16b0ecbf85a8d5d077e2b7581 Mon Sep 17 00:00:00 2001 From: matt123337 Date: Mon, 4 Aug 2014 15:37:39 -0400 Subject: [PATCH] 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. --- .../org/parabot/core/classpath/ClassPath.java | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/parabotv2/src/org/parabot/core/classpath/ClassPath.java b/parabotv2/src/org/parabot/core/classpath/ClassPath.java index 59b3309..acd939a 100644 --- a/parabotv2/src/org/parabot/core/classpath/ClassPath.java +++ b/parabotv2/src/org/parabot/core/classpath/ClassPath.java @@ -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 { } } -} \ No newline at end of file +}