diff --git a/.gitignore b/.gitignore index 2232c60..780a086 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,6 @@ classes/ .settings *.launch -.DS_STORE \ No newline at end of file +.DS_STORE + +.architectury-transformer/ \ No newline at end of file diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 19b5fe6..879e8e1 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -29,7 +29,7 @@ "depends": { "minecraft": ">=1.19", "java": ">=17", - "cloth-config2": ">=7.0.0" + "cloth-config2": ">=8.0.0" }, "suggests": { "modmenu": ">=4.0.0" diff --git a/forge/src/main/java/dev/igalaxy/takeitslow/forge/ForgeEntrypoint.java b/forge/src/main/java/dev/igalaxy/takeitslow/forge/ForgeEntrypoint.java index c27a68a..b8bb060 100644 --- a/forge/src/main/java/dev/igalaxy/takeitslow/forge/ForgeEntrypoint.java +++ b/forge/src/main/java/dev/igalaxy/takeitslow/forge/ForgeEntrypoint.java @@ -3,7 +3,7 @@ import dev.igalaxy.takeitslow.TakeItSlow; import dev.igalaxy.takeitslow.config.TakeItSlowConfig; import me.shedaniel.autoconfig.AutoConfig; -import net.minecraftforge.client.ConfigGuiHandler; +import net.minecraftforge.client.ConfigScreenHandler; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.common.Mod; @@ -12,8 +12,8 @@ public class ForgeEntrypoint { public ForgeEntrypoint() { TakeItSlow.onInitialize(); - ModLoadingContext.get().registerExtensionPoint(ConfigGuiHandler.ConfigGuiFactory.class, () -> - new ConfigGuiHandler.ConfigGuiFactory( + ModLoadingContext.get().registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () -> + new ConfigScreenHandler.ConfigScreenFactory( (mc, screen) -> AutoConfig.getConfigScreen(TakeItSlowConfig.class, screen).get() ) ); diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml index 1c0cc26..1a85d2f 100644 --- a/forge/src/main/resources/META-INF/mods.toml +++ b/forge/src/main/resources/META-INF/mods.toml @@ -30,6 +30,6 @@ side = "BOTH" [[dependencies.takeitslow]] modId = "cloth_config" mandatory = true -versionRange = "[6,7)" +versionRange = "[8,9)" ordering = "NONE" side = "BOTH" \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 06d5c85..6ad0d53 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ minecraft_version=1.19 enabled_platforms=fabric,forge archives_base_name=take-it-slow -mod_version=1.0.2 +mod_version=1.0.3 maven_group=dev.igalaxy.takeitslow architectury_version=5.6.22 @@ -13,8 +13,8 @@ fabric_loader_version=0.14.7 forge_version=1.19-41.1.0 -cloth_version = 6.+ -modmenu_version = 4.+ +cloth_version = 8.+ +modmenu_version = 4.0.4