Closed TheLimePixel closed 4 years ago
Hey there. It's been too much time and I'm unsure whether this is still relevant for you, but I'm letting you know that I'm merging this into a separate branch (from 2.x) and will revert some of the changes you've made (like removing objects), but otherwise keeping your commits.
Thanks.
This PR removes the unnecessary
FMLKotlinModLoadingContext
andKotlinAutomaticEventSubscriber
objects and puts their methods in the file scope. As I now know, it's quite pointless and slightly inefficient using objects as namespaces in Kotlin. This additionally makes accessing the mod loading context much shorter.This PR additionally replaces
getModId()
in string interpolation with the equivalent, but shortermodId
, and fixes a slight inconsistency in the tests.