diff options
author | nea <romangraef@gmail.com> | 2022-09-10 03:48:03 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-09-10 03:48:03 +0200 |
commit | ec66c82198fe2d61d699d553c1254f08b43fcc65 (patch) | |
tree | b5d4efaf5d6d6699357c3afb1d6920d89d51b3b8 /src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt | |
parent | d9353ff54c20a08e4e078e0190fc1f364b08a2d1 (diff) | |
download | Firmament-ec66c82198fe2d61d699d553c1254f08b43fcc65.tar.gz Firmament-ec66c82198fe2d61d699d553c1254f08b43fcc65.tar.bz2 Firmament-ec66c82198fe2d61d699d553c1254f08b43fcc65.zip |
Move Eventhandling around.
I still want to use fabric still "array backed" events, but these here are just a bit easier to use from kotlin.
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt b/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt index 4868fbf..a2949a7 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt @@ -25,6 +25,7 @@ import org.freedesktop.dbus.connections.impl.DBusConnectionBuilder import java.nio.file.Files import java.nio.file.Path import kotlin.coroutines.EmptyCoroutineContext +import moe.nea.notenoughupdates.features.FeatureManager object NotEnoughUpdates : ModInitializer, ClientModInitializer { const val MOD_ID = "notenoughupdates" @@ -71,8 +72,9 @@ object NotEnoughUpdates : ModInitializer, ClientModInitializer { override fun onInitialize() { dbusConnection.requestBusName("moe.nea.notenoughupdates") dbusConnection.exportObject(NEUDbusObject) - RepoManager.initialize() ConfigHolder.registerEvents() + RepoManager.initialize() + FeatureManager.autoload() ClientCommandRegistrationCallback.EVENT.register(this::registerCommands) ClientLifecycleEvents.CLIENT_STOPPING.register(ClientLifecycleEvents.ClientStopping { runBlocking { |