aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-09 22:19:46 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-09 22:19:46 +0200
commit53dc0c3b0a758ce2afff2637a5a5f22aa1733c56 (patch)
tree13a3f86ea9098d007aea472c7c6cf8361cf7f596
parentb35a23e6747c14412e67338906e561c54d4378cb (diff)
downloadFirmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.tar.gz
Firmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.tar.bz2
Firmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.zip
Fix delegated features not being loaded
[no changelog]
-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}")