Remove unnecessary elvis operator

This commit is contained in:
Shadowfacts 2018-06-09 15:28:51 -04:00
parent be61809a7b
commit c64538e7b0
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ object ForgelinAutomaticEventSubscriber {
LOGGER.debug("Registering @EventBusSubscriber object for {} for mod {}", subscriber.className, mod.modId)
val subscriberClass = Class.forName(subscriber.className, false, loader) ?: continue
val kotlinClass = subscriberClass?.kotlin ?: continue
val kotlinClass = subscriberClass.kotlin
val subscriberInstance = kotlinClass.objectInstance ?: kotlinClass.companionObjectInstance ?: continue
MinecraftForge.EVENT_BUS.unregister(subscriberClass)