Compare commits

..

2 Commits

Author SHA1 Message Date
Helvetica Volubi
6eebbe4221 fix: refix a bug in remove config 2025-06-09 21:47:07 +08:00
Helvetica Volubi
85f3e2875f fix: fix a bug in remove config 2025-06-09 19:18:12 +08:00

View File

@@ -1,6 +1,6 @@
--- /dev/null
+++ b/src/main/java/me/earthme/luminol/config/LuminolConfig.java
@@ -1,0 +_,379 @@
@@ -1,0 +_,382 @@
+package me.earthme.luminol.config;
+
+import com.electronwill.nightconfig.core.UnmodifiableConfig;
@@ -167,7 +167,10 @@
+ if (!removed && configFileInstance.get(fullConfigKeyName) != null) break;
+ }
+ }
+ if (removed) continue;
+ if (removed) {
+ configFileInstance.remove("removed");
+ continue;
+ }
+ if (configFileInstance.get(fullConfigKeyName) != null) continue;
+ if (currentValue == null) {
+ throw new UnsupportedOperationException("Config " + singleConfigModule.getBaseName() + "tried to add an null default value!");