Fix config resets
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
package moe.nea.firmament.mixins;public class MixinDrawContext {
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -85,8 +85,9 @@ abstract class ManagedConfig(val name: String) {
|
||||
e
|
||||
)
|
||||
}
|
||||
} else {
|
||||
value = default()
|
||||
}
|
||||
value = default()
|
||||
}
|
||||
|
||||
internal fun toJson(): JsonElement? {
|
||||
|
||||
Reference in New Issue
Block a user