mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-13 10:25:14 +01:00
Change how I compile methods in hopes of eliminating randomly wrong order
This commit is contained in:
parent
c5322072ae
commit
e276773bf3
@ -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;
|
||||
|
@ -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<Class<?>> classes = ClassGetter
|
||||
.getClassesForPackage(FlagWatcher.class, "me.libraryaddict.disguise.disguisetypes.watchers");
|
||||
classes.add(FlagWatcher.class);
|
||||
|
||||
ArrayList<Class> sorted = new ArrayList<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user