diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-08 18:42:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 18:42:25 +0200 |
commit | ff6dd291a0f89644508171e6b984295de20466ce (patch) | |
tree | daa540ed19040decaf318873c7a0aeee04fbede1 /src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | |
parent | e2145b0ce839cefe66431592a9884a316740e0f7 (diff) | |
download | skyhanni-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.kt | 14 |
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 { |