From c326453a369bdd82d1fe4900d9951e7a06a30a27 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Tue, 20 Feb 2024 04:59:55 -0700 Subject: [PATCH] Run datagen when packing the jar up --- build.gradle | 1 + gradle.properties | 2 +- src/main/resources/pack.mcmeta | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 3eaa2f3..edb9a49 100644 --- a/build.gradle +++ b/build.gradle @@ -220,6 +220,7 @@ tasks.named('jar', Jar).configure { // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' + dependsOn 'runData' } diff --git a/gradle.properties b/gradle.properties index 060e7b8..9b13e66 100644 --- a/gradle.properties +++ b/gradle.properties @@ -48,7 +48,7 @@ mod_name=Thresholds # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1201.4.022024.0416 +mod_version=1201.4.022024.0459 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta index a7d103a..eca79ae 100644 --- a/src/main/resources/pack.mcmeta +++ b/src/main/resources/pack.mcmeta @@ -3,6 +3,6 @@ "description": { "text": "${mod_id} resources" }, - "pack_format": ${pack_format_number} -} + "pack_format": 15 + } } \ No newline at end of file