Commit Graph

21 Commits

Author SHA1 Message Date
gegy1000 df437491f1 Fix #38 (#39)
Because the automatic subscriber depends on the mod class loader, we need it to run after that has been initialized. That only happens in the construction event, so we have to search at some later stage.
2018-06-10 19:27:26 -04:00
Shadowfacts ecf20f1a76
Don't crash on failed registration
I think Forge is doing something weird with registration event handlers causing ClassNotFoundExceptions

Closes #37
2018-06-09 17:32:39 -04:00
Shadowfacts c64538e7b0
Remove unnecessary elvis operator 2018-06-09 15:28:51 -04:00
Kitten be61809a7b Unregister class reference from the event bus (#36)
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.
2018-06-09 15:08:40 -04:00
gegy1000 438c604d52 Object EventBusSubscriber registration (#34)
* Object EventBusSubscriber registration

* Register from construction and handle companion objects

* Rename construction event listener

* Syntax changes

* Add test mod
2018-05-21 09:36:15 -04:00
Marvin Rösch 23dfb368e1 Add automatic version replacement in Forgelin.kt (#20)
* Add automatic version replacement in Forgelin.kt

* Remove unnecessary newlines caused by IDEA
2017-07-19 21:11:55 -04:00
Shadowfacts 33320699ac
Add mcmod.info
Closes #13
2017-06-11 16:17:46 -04:00
Shadowfacts d5138b9814
Update Kotlin, add JetBrains annotations and Kotlin coroutines
closes #9
2017-04-29 12:05:56 -04:00
Shadowfacts 4dda702c93
Update to Kotlin 1.1.1 & bump version 2017-03-27 16:45:14 -04:00
Shadowfacts 531b3da7ef
Update to Kotlin 1.1
Closes #8
2017-03-05 10:32:02 -05:00
Shadowfacts e0209c61b2
Readd loading plugin
Prevents crash because of unloaded Forgelin/Kotlin classes.

Closes #6
Closes #7
2017-02-16 18:22:08 -05:00
Shadowfacts 106c697b49
Add mod, remove loading plugin, bump version
Closes #5
2017-02-15 19:21:37 -05:00
Shadowfacts 8a06ed849e
Update to Kotlin 1.0.6, clean up language adapter 2016-12-28 09:42:03 -05:00
Shadowfacts 144c4468ee It lives 2016-11-14 10:59:31 -05:00
Shadowfacts b216102bb9 Add ListExtensions 2016-08-08 15:40:15 -04:00
Shadowfacts f342ce7b03 Property access syntax and elvis operators. Because. 2016-08-06 16:35:47 -04:00
Shadowfacts 3c23a62aad Fix object instance field name 2016-08-06 16:33:12 -04:00
Shadowfacts 144cc8bac5 Add test mod 2016-08-06 16:33:01 -04:00
Shadowfacts 1eedd2da9b Fix adapter name and bump version 2016-08-06 16:00:06 -04:00
Shadowfacts d6e4352134 Fix plugin class name, bump version 2016-08-06 15:54:59 -04:00
Shadowfacts 16bea29c08 Initial Commit 2016-08-06 10:28:05 -04:00