aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-12 01:37:30 +0200
committernea <nea@nea.moe>2023-06-12 01:37:30 +0200
commita1fb86f653a80a9029da65394ca95146dc570693 (patch)
tree30d340579016077f5555eb5267b1d8937fe5c8a5 /src/main
parenta74a2fb1d571da6a4a87578f354b18921b01d8d4 (diff)
downloadfirmament-a1fb86f653a80a9029da65394ca95146dc570693.tar.gz
firmament-a1fb86f653a80a9029da65394ca95146dc570693.tar.bz2
firmament-a1fb86f653a80a9029da65394ca95146dc570693.zip
Fix config resets
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java2
-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
3 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java b/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java
new file mode 100644
index 0000000..a30eb11
--- /dev/null
+++ b/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java
@@ -0,0 +1,2 @@
+package moe.nea.firmament.mixins;public class MixinDrawContext {
+}
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? {