aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt1
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt b/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt
index 678d626..d9d7f3d 100644
--- a/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt
@@ -51,7 +51,6 @@ object FairySouls : FirmamentFeature {
object TConfig : ManagedConfig("fairy-souls") {
-
val displaySouls by toggle("show") { false }
val resetSouls by button("reset") {
DConfig.data?.foundSouls?.clear() != null
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt
index fcfc468..417a470 100644
--- a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt
+++ b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt
@@ -85,8 +85,9 @@ abstract class ManagedConfig(val name: String) {
e
)
}
+ } else {
+ value = default()
}
- value = default()
}
internal fun toJson(): JsonElement? {