aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-02 22:38:48 +0200
committernea <nea@nea.moe>2023-05-02 22:38:48 +0200
commita8ab8f3d6326211f6e07694c64ebd8b6ba195988 (patch)
treea5414f35491512a775d52838922d3ca7c4e3417f /src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt
parent81b5f58574d5ea9116f4ef0bb0c0e095f83e21a0 (diff)
downloadfirmament-a8ab8f3d6326211f6e07694c64ebd8b6ba195988.tar.gz
firmament-a8ab8f3d6326211f6e07694c64ebd8b6ba195988.tar.bz2
firmament-a8ab8f3d6326211f6e07694c64ebd8b6ba195988.zip
Todos
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt4
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 77d3c22..7563a7a 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt
@@ -64,18 +64,20 @@ object NotEnoughUpdates : ModInitializer, ClientModInitializer {
private fun registerCommands(
dispatcher: CommandDispatcher<FabricClientCommandSource>,
@Suppress("UNUSED_PARAMETER")
- _ctx: CommandRegistryAccess
+ ctx: CommandRegistryAccess
) {
registerNeuCommand(dispatcher)
}
override fun onInitialize() {
+
dbusConnection.requestBusName("moe.nea.notenoughupdates")
dbusConnection.exportObject(NEUDbusObject)
IDataHolder.registerEvents()
RepoManager.initialize()
SBData.init()
FeatureManager.autoload()
+
ClientCommandRegistrationCallback.EVENT.register(this::registerCommands)
ClientLifecycleEvents.CLIENT_STOPPING.register(ClientLifecycleEvents.ClientStopping {
runBlocking {