From c64538e7b0bde556aa7a30562662d9683965efd7 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 9 Jun 2018 15:28:51 -0400 Subject: [PATCH] Remove unnecessary elvis operator --- .../shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt b/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt index dfef1f1..be1847e 100644 --- a/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt +++ b/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt @@ -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)