From de85e17689a9e801901b95fe3f2e7e69ac4991e7 Mon Sep 17 00:00:00 2001 From: ZtereoHYPE <57519662+ZtereoHYPE@users.noreply.github.com> Date: Wed, 15 Mar 2023 13:53:50 +0100 Subject: [PATCH] change: finish update to 1.19.4 --- build.gradle | 10 ++++---- gradle.properties | 4 ++-- .../nicerskies/gui/ModMenuSettingsApi.java | 24 +++++++++---------- src/main/resources/fabric.mod.json | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index 1bf7e12..9c7e2c3 100644 --- a/build.gradle +++ b/build.gradle @@ -34,17 +34,17 @@ dependencies { } // apis -// modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}" + modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}" // devenv mods // modRuntimeOnly "maven.modrinth:lazydfu:${project.lazydfu_version}" // modRuntimeOnly "maven.modrinth:starlight:${project.starlight_version}" // //modRuntimeOnly "maven.modrinth:lithium:${project.lithium_version}" // modRuntimeOnly "maven.modrinth:spark:${project.spark_version}" -// modRuntimeOnly include(fabricApi.module("fabric-command-api-v2", project.fabric_version)) -// modRuntimeOnly include(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version)) -// modRuntimeOnly("com.terraformersmc:modmenu:${project.modmenu_version}") { transitive = false } -// modRuntimeOnly(include(fabricApi.module("fabric-screen-api-v1", project.fabric_version))) + modRuntimeOnly include(fabricApi.module("fabric-command-api-v2", project.fabric_version)) + modRuntimeOnly include(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version)) + modRuntimeOnly("com.terraformersmc:modmenu:${project.modmenu_version}") { transitive = false } + modRuntimeOnly(include(fabricApi.module("fabric-screen-api-v1", project.fabric_version))) // libraries compileOnly 'org.projectlombok:lombok:1.18.24' diff --git a/gradle.properties b/gradle.properties index 02de9f3..6bd58a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.19.4-rc2 + minecraft_version=1.19.4 loader_version=0.14.17 fabric_version=0.75.3+1.19.4 @@ -13,7 +13,7 @@ archives_base_name = nicer-skies # Dependencies -# modmenu_version = 5.0.2 + modmenu_version = 6.1.0-rc.1 # lazydfu_version = 0.1.3 # starlight_version = 1.1.1+1.19 # lithium_version = mc1.19.3-0.10.4 diff --git a/src/main/java/codes/ztereohype/nicerskies/gui/ModMenuSettingsApi.java b/src/main/java/codes/ztereohype/nicerskies/gui/ModMenuSettingsApi.java index 96e5a80..b0f74c8 100644 --- a/src/main/java/codes/ztereohype/nicerskies/gui/ModMenuSettingsApi.java +++ b/src/main/java/codes/ztereohype/nicerskies/gui/ModMenuSettingsApi.java @@ -1,14 +1,14 @@ package codes.ztereohype.nicerskies.gui; -//import com.terraformersmc.modmenu.api.ConfigScreenFactory; -//import com.terraformersmc.modmenu.api.ModMenuApi; -//import net.fabricmc.api.EnvType; -//import net.fabricmc.api.Environment; -// -//@Environment(EnvType.CLIENT) -//public class ModMenuSettingsApi implements ModMenuApi { -// @Override -// public ConfigScreenFactory getModConfigScreenFactory() { -// return ConfigScreen::new; -// } -//} +import com.terraformersmc.modmenu.api.ConfigScreenFactory; +import com.terraformersmc.modmenu.api.ModMenuApi; +import net.fabricmc.api.EnvType; +import net.fabricmc.api.Environment; + +@Environment(EnvType.CLIENT) +public class ModMenuSettingsApi implements ModMenuApi { + @Override + public ConfigScreenFactory getModConfigScreenFactory() { + return ConfigScreen::new; + } +} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 5eec0fa..9730a69 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -26,7 +26,7 @@ ], "depends": { "fabricloader": ">=0.14.6", - "minecraft": "1.19.4-rc.2", + "minecraft": "1.19.4", "java": ">=17" } }