aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-24 18:12:39 +0200
committernea <nea@nea.moe>2023-08-24 18:12:39 +0200
commitb0cb9a70cd9a3f02b86e0386ab6bb70974bba35a (patch)
treeddb5e478c321e87c424f002b959265b25891b943 /src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt
parent8c5570bfe6ab93855e24e6924fac1105fe8342ff (diff)
downloadFirmament-b0cb9a70cd9a3f02b86e0386ab6bb70974bba35a.tar.gz
Firmament-b0cb9a70cd9a3f02b86e0386ab6bb70974bba35a.tar.bz2
Firmament-b0cb9a70cd9a3f02b86e0386ab6bb70974bba35a.zip
Revive old profile viewer
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt b/src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt
index 9c27030..d760862 100644
--- a/src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt
+++ b/src/main/kotlin/moe/nea/firmament/jarvis/JarvisIntegration.kt
@@ -42,6 +42,10 @@ class JarvisIntegration : JarvisPlugin {
}
}
+ override fun onHudEditorClosed() {
+ configs.forEach { it.save() }
+ }
+
override fun getAllConfigOptions(): List<JarvisConfigOption> {
return configs.flatMap { config ->
config.sortedOptions.map {