mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-06 03:00:57 -06:00
More unification work
This commit is contained in:
parent
9230661db6
commit
8ede497c19
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ object ClassScanner {
|
|||
}
|
||||
|
||||
fun load() {
|
||||
var result = ClassGraph().enableClassInfo().enableAnnotationInfo().scan()
|
||||
val result = ClassGraph().enableClassInfo().enableAnnotationInfo().scan()
|
||||
result.getClassesWithAnnotation("core.plugin.Initializable").forEach(Consumer { p: ClassInfo ->
|
||||
try {
|
||||
definePlugin(p.loadClass().newInstance() as Plugin<Object>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue