autaut03 / kottle

Kotlin language provider for Forge 1.13.2+
GNU Lesser General Public License v3.0
30 stars 13 forks source link

Fix constructor errors appearing as classloading errors #28

Closed thecodewarrior closed 4 years ago

thecodewarrior commented 4 years ago

Currently, if an error occurs creating a Kotlin object, FML will classify it as a classloading error on the "error loading game" screen. This is because an object's constructor is called when the class is loaded (due to the auto-generated public static final INSTANCE = new TheObjectType();), causing an error in the classloading try/catch. By changing the class loading section so it doesn't run static initializers those errors will instead be correctly picked up by the mod construction try/catch.

autaut03 commented 4 years ago

Hey! Sure, looks good to me. I'll publish a new version asap.

autaut03 commented 4 years ago

Twitch thought it would be a good idea to require me to change my generated random 16 chars long password, but I haven't received an email from them with a link I need to do that in the past 10 minutes. Fuck twitch.

It'll have to wait a little bit more, sorry.

autaut03 commented 4 years ago

1.5.2 released. Thank you!