Fix delegated features not being loaded
[no changelog]
This commit is contained in:
@@ -96,7 +96,7 @@ object FeatureManager : DataHolder<FeatureManager.Config>(serializer(), "feature
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun <T : FirmamentEvent> subscribeSingleEvent(it: Subscription<T>) {
|
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
|
it.eventBus.subscribe(false, it.invoke) // TODO: pass through receivesCancelled from the annotation
|
||||||
} else {
|
} else {
|
||||||
Firmament.logger.error("Ignoring event listener for ${it.eventBus} in ${it.owner}")
|
Firmament.logger.error("Ignoring event listener for ${it.eventBus} in ${it.owner}")
|
||||||
|
|||||||
Reference in New Issue
Block a user