From ba46051dcb50639670df7463d4a6510df7d02146 Mon Sep 17 00:00:00 2001 From: MelanX Date: Sat, 31 Aug 2024 15:42:26 +0200 Subject: [PATCH] [meta] Update Gradle plugins and mappings versions --- build.gradle | 2 +- gradle.properties | 6 +++--- .../java/de/melanx/defaultworldtype/DefaultWorldType.java | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 486126f..ee573ba 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ plugins { id 'maven-publish' id 'net.darkhax.curseforgegradle' version '1.1.18' id 'com.modrinth.minotaur' version '2.+' - id 'net.neoforged.moddev' version '[1.0,1.1)' + id 'net.neoforged.moddev' version '[2.0,2.1)' } version = getVersion(minecraft_version + "-" + base_version, new URI(remote_maven + "/" + group.replace('.', '/') + "/" + name + "/maven-metadata.xml").toURL()) diff --git a/gradle.properties b/gradle.properties index 9b076f9..3e0049e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,11 +6,11 @@ org.gradle.configuration-cache=true ## Mappings parchment_minecraft_version=1.21 -parchment_mappings_version=2024.07.07 +parchment_mappings_version=2024.07.28 ## Loader Properties minecraft_version=1.21 -neo_version=21.0.86-beta +neo_version=21.0.167 loader_version_range=[4,) ## Mod Properties @@ -20,7 +20,7 @@ group=de.melanx base_version=5.0 ## Upload Properties -upload_versions=1.21 +upload_versions=1.21, 1.21.1 upload_release=beta modrinth_project=kZvO1mDq curse_project=373014 diff --git a/src/main/java/de/melanx/defaultworldtype/DefaultWorldType.java b/src/main/java/de/melanx/defaultworldtype/DefaultWorldType.java index 5152030..ec3d71a 100644 --- a/src/main/java/de/melanx/defaultworldtype/DefaultWorldType.java +++ b/src/main/java/de/melanx/defaultworldtype/DefaultWorldType.java @@ -4,6 +4,8 @@ import net.neoforged.fml.ModContainer; import net.neoforged.fml.common.Mod; import net.neoforged.fml.config.ModConfig; +import net.neoforged.neoforge.client.gui.ConfigurationScreen; +import net.neoforged.neoforge.client.gui.IConfigScreenFactory; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -27,5 +29,6 @@ public DefaultWorldType(ModContainer modContainer) { } modContainer.registerConfig(ModConfig.Type.CLIENT, ClientConfig.CLIENT_SPEC, DefaultWorldType.MODID + "/client-config.toml"); + modContainer.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new); } }