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/features/misc | |
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/features/misc')
5 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt index 0d504e459..ae7d22c41 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt @@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigFileType import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.utils.ChatUtils -import io.github.moulberry.moulconfig.processor.ConfigProcessorDriver +import io.github.notenoughupdates.moulconfig.processor.ConfigProcessorDriver import net.minecraft.client.Minecraft import net.minecraft.command.CommandBase import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -28,7 +28,7 @@ object DefaultConfigFeatures { val knownToggles = SkyHanniMod.knownFeaturesData.knownFeatures val updated = SkyHanniMod.version !in knownToggles val processor = FeatureToggleProcessor() - ConfigProcessorDriver.processConfig(SkyHanniMod.feature.javaClass, SkyHanniMod.feature, processor) + ConfigProcessorDriver(processor).processConfig(SkyHanniMod.feature) knownToggles[SkyHanniMod.version] = processor.allOptions.map { it.path } SkyHanniMod.configManager.saveConfig(ConfigFileType.KNOWN_FEATURES, "Updated known feature flags") if (!SkyHanniMod.feature.storage.hasPlayedBefore) { @@ -51,7 +51,7 @@ object DefaultConfigFeatures { fun onCommand(old: String, new: String) { val processor = FeatureToggleProcessor() - ConfigProcessorDriver.processConfig(SkyHanniMod.feature.javaClass, SkyHanniMod.feature, processor) + ConfigProcessorDriver(processor).processConfig(SkyHanniMod.feature) var optionList = processor.orderedOptions val knownToggles = SkyHanniMod.knownFeaturesData.knownFeatures val togglesInNewVersion = knownToggles[new] diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigOptionGui.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigOptionGui.kt index d878d9665..c1420bc8c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigOptionGui.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigOptionGui.kt @@ -1,8 +1,8 @@ package at.hannibal2.skyhanni.features.misc.massconfiguration -import io.github.moulberry.moulconfig.internal.GlScissorStack -import io.github.moulberry.moulconfig.internal.RenderUtils -import io.github.moulberry.moulconfig.internal.TextRenderUtils +import io.github.notenoughupdates.moulconfig.internal.GlScissorStack +import io.github.notenoughupdates.moulconfig.internal.RenderUtils +import io.github.notenoughupdates.moulconfig.internal.TextRenderUtils import io.github.moulberry.notenoughupdates.util.Utils import net.minecraft.client.gui.GuiScreen import net.minecraft.client.gui.ScaledResolution diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt index 7cf0db710..2b33885c1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt @@ -1,10 +1,10 @@ package at.hannibal2.skyhanni.features.misc.massconfiguration import at.hannibal2.skyhanni.config.FeatureToggle -import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean -import io.github.moulberry.moulconfig.annotations.ConfigOption -import io.github.moulberry.moulconfig.observer.Property -import io.github.moulberry.moulconfig.processor.ConfigStructureReader +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption +import io.github.notenoughupdates.moulconfig.observer.Property +import io.github.notenoughupdates.moulconfig.processor.ConfigStructureReader import java.lang.reflect.Field import java.lang.reflect.ParameterizedType import java.util.Stack @@ -88,4 +88,4 @@ class FeatureToggleProcessor : ConfigStructureReader { override fun emitGuiOverlay(baseObject: Any?, field: Field?, option: ConfigOption?) { } -}
\ No newline at end of file +} diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/update/GuiOptionEditorUpdateCheck.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/update/GuiOptionEditorUpdateCheck.kt index e92d6bdf3..057c0dfdc 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/update/GuiOptionEditorUpdateCheck.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/update/GuiOptionEditorUpdateCheck.kt @@ -1,9 +1,9 @@ package at.hannibal2.skyhanni.features.misc.update import at.hannibal2.skyhanni.SkyHanniMod -import io.github.moulberry.moulconfig.gui.GuiOptionEditor -import io.github.moulberry.moulconfig.internal.TextRenderUtils -import io.github.moulberry.moulconfig.processor.ProcessedOption +import io.github.notenoughupdates.moulconfig.gui.GuiOptionEditor +import io.github.notenoughupdates.moulconfig.internal.TextRenderUtils +import io.github.notenoughupdates.moulconfig.processor.ProcessedOption import io.github.moulberry.notenoughupdates.itemeditor.GuiElementButton import net.minecraft.client.Minecraft import net.minecraft.client.renderer.GlStateManager diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt index b96533cc6..0377e1467 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt @@ -8,7 +8,7 @@ import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.ConditionalUtils.onToggle import at.hannibal2.skyhanni.utils.LorenzLogger import com.google.gson.JsonElement -import io.github.moulberry.moulconfig.processor.MoulConfigProcessor +import io.github.notenoughupdates.moulconfig.processor.MoulConfigProcessor import io.github.moulberry.notenoughupdates.util.ApiUtil import io.github.moulberry.notenoughupdates.util.MinecraftExecutor import moe.nea.libautoupdate.CurrentVersion |