From 36277c2b33d5f1153c75a1cbcca861bdc2716a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaspar=20Sunek=C3=A6r?= Date: Wed, 19 Jun 2024 11:08:45 +0200 Subject: [PATCH] update to 1.21 --- CHANGELOG.md | 2 +- gradle.properties | 12 ++++++------ neoforge/src/main/java/mute/Mute.java | 4 +--- .../src/main/resources/META-INF/neoforge.mods.toml | 6 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e91b40..6aae809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ # Changelog -Update to architectury version 11.0.10 \ No newline at end of file +Update to 1.21 \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 0608ea8..ccf14b4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,26 +5,26 @@ org.gradle.daemon=false enabled_platforms=neoforge -mod_version=86.0.0 +mod_version=87.0.0 # Dependencies -minecraft_version=1.20.6 +minecraft_version=1.21 # ForgeGradle forge_gradle_version=6.0.18 # NeoForgeGradle -neoforge_gradle_version=7.0.120 +neoforge_gradle_version=7.0.145 # Mod loaders # NeoForge -neoforge_version=20.6.48-beta +neoforge_version=21.0.19-beta # Forge forge_version=50.0.9 fabric_loader_version=0.15.11 -fabric_api_version=0.98.0+1.20.6 +fabric_api_version=0.100.3+1.21 # Architectury -architectury_version=12.0.28 +architectury_version=13.0.1 archives_base_name=mute maven_group=com.sunekaer.mods diff --git a/neoforge/src/main/java/mute/Mute.java b/neoforge/src/main/java/mute/Mute.java index ce72201..ae356da 100644 --- a/neoforge/src/main/java/mute/Mute.java +++ b/neoforge/src/main/java/mute/Mute.java @@ -1,8 +1,6 @@ package mute; -import com.machinezoo.noexception.throwing.ThrowingRunnable; import net.neoforged.api.distmarker.Dist; -import net.neoforged.fml.IExtensionPoint; import net.neoforged.fml.ModLoadingContext; import net.neoforged.fml.common.Mod; import net.neoforged.fml.config.ModConfig; @@ -14,7 +12,7 @@ public class Mute { public Mute() { if (FMLEnvironment.dist == Dist.CLIENT) { - ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.CONFIG); + ModLoadingContext.get().getActiveContainer().registerConfig(ModConfig.Type.COMMON, Config.CONFIG); } } diff --git a/neoforge/src/main/resources/META-INF/neoforge.mods.toml b/neoforge/src/main/resources/META-INF/neoforge.mods.toml index 2f5d3dc..c8a5974 100644 --- a/neoforge/src/main/resources/META-INF/neoforge.mods.toml +++ b/neoforge/src/main/resources/META-INF/neoforge.mods.toml @@ -1,5 +1,5 @@ modLoader="javafml" #mandatory -loaderVersion="[2,)" #mandatory +loaderVersion="[4,)" #mandatory license = "All Rights Reserved" displayTest="IGNORE_ALL_VERSION" @@ -16,13 +16,13 @@ side="CLIENT" [[dependencies.mute]] modId = "neoforge" required = true -versionRange = "[20.6,)" +versionRange = "[21,)" ordering="NONE" side="BOTH" [[dependencies.mute]] modId="minecraft" required=true -versionRange="[1.20.6,)" +versionRange="[1.21,)" ordering="NONE" side="BOTH" \ No newline at end of file