Remove unnecessary usage of Reflections

This commit is contained in:
Brady 2018-08-01 21:48:33 -07:00
parent ae59f0606d
commit ef938304f0
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 0 additions and 10 deletions

View File

@ -48,7 +48,6 @@ repositories {
}
dependencies {
implementation 'org.reflections:reflections:0.9.11'
implementation ('org.spongepowered:mixin:0.7.8-SNAPSHOT') {
// Mixin includes a lot of dependencies that are too up-to-date
exclude module: 'launchwrapper'

View File

@ -1,7 +1,6 @@
package baritone.bot;
import baritone.bot.behavior.Behavior;
import org.reflections.Reflections;
import java.util.ArrayList;
import java.util.List;
@ -44,14 +43,6 @@ public enum Baritone {
this.active = true;
this.initialized = true;
new Reflections("baritone.bot.behavior.impl").getSubTypesOf(Behavior.class).forEach(c -> {
try {
behaviors.add(c.newInstance());
} catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
});
}
public final boolean isInitialized() {