User: mysterious_dev Date: 05 Jan 23 22:27 Revision: 3641836795b4ddffe79d7755de2852d5c55fa012 Summary: Use displayURL field when Website field is filled (#1924) TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8212&personal=false Index: src/main/kotlin/platform/forge/creator/Fg3Template.kt =================================================================== --- src/main/kotlin/platform/forge/creator/Fg3Template.kt (revision 68cb436cd52508a4a43ede0b213d038bc67eb1ad) +++ src/main/kotlin/platform/forge/creator/Fg3Template.kt (revision 3641836795b4ddffe79d7755de2852d5c55fa012) @@ -226,6 +226,11 @@ props["UPDATE_URL"] = url } } + config.website?.let { url -> + if (url.isNotBlank()) { + props["WEBSITE"] = url + } + } if (config.hasAuthors()) { props["AUTHOR_LIST"] = config.authors.joinToString(", ") } Index: src/main/resources/fileTemplates/j2ee/forge/mods.toml.ft =================================================================== --- src/main/resources/fileTemplates/j2ee/forge/mods.toml.ft (revision 68cb436cd52508a4a43ede0b213d038bc67eb1ad) +++ src/main/resources/fileTemplates/j2ee/forge/mods.toml.ft (revision 3641836795b4ddffe79d7755de2852d5c55fa012) @@ -29,7 +29,11 @@ #updateJSONURL="https://change.me.example.invalid/updates.json" #optional #end # A URL for the "homepage" for this mod, displayed in the mod UI +#if (${WEBSITE}) +displayURL="${WEBSITE}" #optional +#else #displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional +#end # A file name (in the root of the mod JAR) containing a logo for display #logoFile="${ARTIFACT_ID}.png" #optional # A text field displayed in the mod UI