aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-08 18:42:25 +0200
committerGitHub <noreply@github.com>2024-04-08 18:42:25 +0200
commitff6dd291a0f89644508171e6b984295de20466ce (patch)
treedaa540ed19040decaf318873c7a0aeee04fbede1 /src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
parente2145b0ce839cefe66431592a9884a316740e0f7 (diff)
downloadskyhanni-ff6dd291a0f89644508171e6b984295de20466ce.tar.gz
skyhanni-ff6dd291a0f89644508171e6b984295de20466ce.tar.bz2
skyhanni-ff6dd291a0f89644508171e6b984295de20466ce.zip
Bump MoulConfig to 3.0.0 betas (#1382)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
index 3a38db02a..3fbf41541 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
@@ -29,10 +29,10 @@ import com.google.gson.TypeAdapterFactory
import com.google.gson.stream.JsonReader
import com.google.gson.stream.JsonToken
import com.google.gson.stream.JsonWriter
-import io.github.moulberry.moulconfig.observer.PropertyTypeAdapterFactory
-import io.github.moulberry.moulconfig.processor.BuiltinMoulConfigGuis
-import io.github.moulberry.moulconfig.processor.ConfigProcessorDriver
-import io.github.moulberry.moulconfig.processor.MoulConfigProcessor
+import io.github.notenoughupdates.moulconfig.observer.PropertyTypeAdapterFactory
+import io.github.notenoughupdates.moulconfig.processor.BuiltinMoulConfigGuis
+import io.github.notenoughupdates.moulconfig.processor.ConfigProcessorDriver
+import io.github.notenoughupdates.moulconfig.processor.MoulConfigProcessor
import net.minecraft.item.ItemStack
import java.io.BufferedReader
import java.io.BufferedWriter
@@ -213,11 +213,7 @@ class ConfigManager {
processor = MoulConfigProcessor(SkyHanniMod.feature)
BuiltinMoulConfigGuis.addProcessors(processor)
UpdateManager.injectConfigProcessor(processor)
- ConfigProcessorDriver.processConfig(
- features.javaClass,
- features,
- processor
- )
+ ConfigProcessorDriver(processor).processConfig(features)
}
private fun firstLoadFile(file: File?, fileType: ConfigFileType, defaultValue: Any): Any {