From 9f8b5582f1ef043a9bca0d401b11efbaf684c57a Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 6 Mar 2023 02:26:39 -0700 Subject: [PATCH] Update WMD to new LibZontreck API --- build.gradle | 5 ++--- gradle.properties | 4 ++-- src/main/resources/META-INF/mods.toml | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index aafb708..885035e 100644 --- a/build.gradle +++ b/build.gradle @@ -137,7 +137,6 @@ dependencies { implementation fg.deobf("dev.zontreck:libzontreck:${mc_version}-${libz_version}:dev") runtimeOnly fg.deobf("dev.zontreck:libzontreck:${mc_version}-${libz_version}") - compileOnly fg.deobf("dev.zontreck:libzontreck:${mc_version}-${libz_version}:dev") // Real mod deobf dependency examples - these get remapped to your current mappings // compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency @@ -157,9 +156,9 @@ jar { attributes([ "Specification-Title" : "watchmydurability", "Specification-Vendor" : "Zontreck", - "Specification-Version" : "1", // We are version 1 of ourselves + "Specification-Version" : "${myversion}", // We are version 1 of ourselves "Implementation-Title" : project.name, - "Implementation-Version" : project.jar.archiveVersion, + "Implementation-Version" : "${myversion}", "Implementation-Vendor" : "ZNI Creations", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) diff --git a/gradle.properties b/gradle.properties index 9d338dd..30a2ffa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,5 +5,5 @@ org.gradle.daemon=false mc_version=1.18.2 forge_version=40.2.1 -myversion=1.1.2.7 -libz_version=1.0.4.9 \ No newline at end of file +myversion=1.1.3.0306230216 +libz_version=1.0.5.0306230154 \ No newline at end of file diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 04b3026..4d3e479 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -9,7 +9,7 @@ modLoader="javafml" #mandatory loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. # The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties. # Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here. -license="GPL-v2" +license="GPL-v3" # A URL to refer people to when problems occur with this mod #issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional # A list of mods - how many allowed here is determined by the individual mod loader @@ -19,7 +19,7 @@ modId="watchmydurability" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata # see the associated build.gradle script for how to populate this completely automatically during a build -version="1.1.2.7" #mandatory +version="${file.jarVersion}" #mandatory # A display name for the mod displayName="Watch My Durability" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/ @@ -71,6 +71,6 @@ Edit the config file to customize the alerts [[dependencies.watchmydurability]] modId="libzontreck" mandatory=true - versionRange="[1.0.4.9,1.0.5.0)" + versionRange="[1.0.5.0,1.0.6.0)" ordering="NONE" side="CLIENT" \ No newline at end of file