diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:19:46 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:19:46 +0200 |
commit | 53dc0c3b0a758ce2afff2637a5a5f22aa1733c56 (patch) | |
tree | 13a3f86ea9098d007aea472c7c6cf8361cf7f596 /src/main/kotlin/moe/nea | |
parent | b35a23e6747c14412e67338906e561c54d4378cb (diff) | |
download | Firmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.tar.gz Firmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.tar.bz2 Firmament-53dc0c3b0a758ce2afff2637a5a5f22aa1733c56.zip |
Fix delegated features not being loaded
[no changelog]
Diffstat (limited to 'src/main/kotlin/moe/nea')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/FeatureManager.kt | 2 |
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}") |