aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt2
1 files changed, 1 insertions, 1 deletions
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<FeatureManager.Config>(serializer(), "feature
}
private fun <T : FirmamentEvent> subscribeSingleEvent(it: Subscription<T>) {
- 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}")