diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt b/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt index d127381..c69d7b2 100644 --- a/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt +++ b/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt @@ -87,13 +87,12 @@ object FeatureManager : DataHolder<FeatureManager.Config>(serializer(), "feature loadFeature(DebugView) } allFeatures.forEach { it.config } - subscribeEvents() FeaturesInitializedEvent.publish(FeaturesInitializedEvent(allFeatures.toList())) hasAutoloaded = true } } - private fun subscribeEvents() { + fun subscribeEvents() { AllSubscriptions.provideSubscriptions { subscribeSingleEvent(it) } |