diff --git a/build.gradle b/build.gradle index d433e0e..a9be1c3 100644 --- a/build.gradle +++ b/build.gradle @@ -46,6 +46,10 @@ processResources { filesMatching(['META-INF/mods.toml', 'pack.mcmeta', 'update.json']) { expand replaceProperties + [project: project] } + inputs.property "mod_homepage", mod_homepage + filesMatching("META-INF/mods.toml") { + expand 'mod_homepage': mod_homepage + } } println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" diff --git a/gradle.properties b/gradle.properties index 8c52fe8..7f5d147 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ maven_group=io.github.nattocb.treasure_seas mod_license = LGPL-3.0 mod_group_id = io.github.nattocb mod_authors = NattoCB -mod_homepage = https://www.curseforge.com/minecraft/mc-mods/treasureseas +mod_homepage = https://modrinth.com/mod/treasure-seas mod_github = https://github.com/i493052739/TreasureSeas minecraft_version=1.18.2 diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 7c9e30b..3657afa 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -9,6 +9,7 @@ version = "${mod_version}" displayName = "${mod_name}" authors = "${mod_authors}" logoFile = "treasure_seas.png" +displayURL = "https://modrinth.com/mod/treasure-seas" description = ''' Embark on an adventurous journey where fishing is more than just casting a line. In Treasure Seas‘ enchantment, every catch is a battle as you engage in thrilling duels