From ecf20f1a76bde4633370836c33d66ef94b094aa3 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 9 Jun 2018 17:32:39 -0400 Subject: [PATCH] Don't crash on failed registration I think Forge is doing something weird with registration event handlers causing ClassNotFoundExceptions Closes #37 --- gradle.properties | 2 +- .../shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 8678214..3635c0c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version = 1.7.0 +mod_version = 1.7.1 group = net.shadowfacts archivesBaseName = Forgelin diff --git a/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt b/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt index be1847e..645a9d4 100644 --- a/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt +++ b/src/main/kotlin/net/shadowfacts/forgelin/ForgelinAutomaticEventSubscriber.kt @@ -52,7 +52,6 @@ object ForgelinAutomaticEventSubscriber { LOGGER.debug("Registered @EventBusSubscriber object {}", subscriber.className) } catch (e: Throwable) { LOGGER.error("An error occurred trying to load an @EventBusSubscriber object {} for modid {}", mod.modId, e) - throw LoaderException(e) } } }