Remove unnecessary usage of Reflections
This commit is contained in:
		| @@ -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' | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user