diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java index bd91033e..06258370 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java @@ -34,7 +34,6 @@ public class ClassGetter { if (resource.getPath().toLowerCase().endsWith(".jar")) { processJarfile(resource, pkgname, classes); } else { - System.out.println("Not sure how you got here: " + resource.getPath()); for (File f : new File(resource.getPath() + "/" + pkgname.replace(".", "/")).listFiles()) { if (!f.getName().endsWith(".class") || f.getName().contains("$")) { continue; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java b/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java index 8e7a9e09..18d68900 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java @@ -68,18 +68,14 @@ public class CompileMethods { if (c != FlagWatcher.class) { addClass(classes, c.getSuperclass()); - - int ind = classes.indexOf(c.getSuperclass()); - classes.add(ind + 1, c); - } else { - classes.add(0, c); } + + classes.add(c); } private static void doMethods() { ArrayList> classes = ClassGetter .getClassesForPackage(FlagWatcher.class, "me.libraryaddict.disguise.disguisetypes.watchers"); - classes.add(FlagWatcher.class); ArrayList sorted = new ArrayList<>();