mirror of
https://github.com/GTNewHorizons/Forgelin.git
synced 2026-11-20 04:09:41 +00:00
be61809a7b0ca2e0f2d0a4db45d3c63b29dc22fc
When Forgelin registers the object instance of an `@EventBusSubscriber` annotated object class to the event bus, it does not unregister the static class reference that Forge will have registered before Forgelin parses the annotation candidates. This could potentially cause issues, and breaks expectations/semantics from having the annotation register a class both statically and as an instance. This pull request adds a call to `MinecraftForge.EVENT_BUS#unregister` to remove the Forge-registered class reference before registering the instance reference.
Forgelin
Fork of Emberwalker's Forgelin.
Additions
- Shades the Kotlin standard library, runtime, and reflect libraries so you don't have to.
- Provides a Forge
ILanguageAdapterfor using Kotlinobjectclasses as your main mod class.
Usage
repositories {
jcenter()
maven {
url "http://maven.shadowfacts.net/"
}
}
dependencies {
compile group: "net.shadowfacts", name: "Forgelin", version: "LATEST_VERSION"
}
All versions can be seen here.
Note: You must have the jcenter() call in your repositories block. JCenter is used to host the Kotlin coroutines libraries.
Languages
Kotlin
83.8%
Shell
16.2%