From 53dc0c3b0a758ce2afff2637a5a5f22aa1733c56 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 9 May 2024 22:19:46 +0200 Subject: Fix delegated features not being loaded [no changelog] --- src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt b/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt index 669b3c9..4c1fde8 100644 --- a/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt +++ b/src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt @@ -96,7 +96,7 @@ object FeatureManager : DataHolder(serializer(), "feature } private fun subscribeSingleEvent(it: Subscription) { - if (it.owner in features.values) { // TODO: better check here, somehow. probably implement some interface method + if (it.owner.delegateFeature in features.values) { // TODO: better check here, somehow. probably implement some interface method it.eventBus.subscribe(false, it.invoke) // TODO: pass through receivesCancelled from the annotation } else { Firmament.logger.error("Ignoring event listener for ${it.eventBus} in ${it.owner}") -- cgit