From fb40ab45f0b4979420bae066da2244f4fdd52db8 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 24 Sep 2024 13:16:55 +0200 Subject: snapshot --- src/main/kotlin/UltraNotifier.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/UltraNotifier.kt') diff --git a/src/main/kotlin/UltraNotifier.kt b/src/main/kotlin/UltraNotifier.kt index f1bb8ff..cce83e9 100644 --- a/src/main/kotlin/UltraNotifier.kt +++ b/src/main/kotlin/UltraNotifier.kt @@ -1,7 +1,8 @@ package moe.nea.ultranotifier -import moe.nea.ultranotifier.commands.Commands import moe.nea.ultranotifier.event.RegistrationFinishedEvent +import moe.nea.ultranotifier.event.UltraEvent +import moe.nea.ultranotifier.event.UltraNotifierEvents import moe.nea.ultranotifier.init.NeaMixinConfig import java.io.File @@ -18,7 +19,10 @@ object UltraNotifier { for (mixinPlugin in NeaMixinConfig.getMixinPlugins()) { logger.info("Loaded ${mixinPlugin.mixins.size} mixins for ${mixinPlugin.mixinPackage}.") } - Commands.init() + AllModules.allModules.forEach { + UltraNotifierEvents.register(it) + it.init() + } RegistrationFinishedEvent().post() -- cgit