Skip to content

Commit 3641836

Browse files
Use displayURL field when Website field is filled (#1924)
1 parent 68cb436 commit 3641836

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/kotlin/platform/forge/creator/Fg3Template.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ object Fg3Template : BaseTemplate() {
226226
props["UPDATE_URL"] = url
227227
}
228228
}
229+
config.website?.let { url ->
230+
if (url.isNotBlank()) {
231+
props["WEBSITE"] = url
232+
}
233+
}
229234
if (config.hasAuthors()) {
230235
props["AUTHOR_LIST"] = config.authors.joinToString(", ")
231236
}

src/main/resources/fileTemplates/j2ee/forge/mods.toml.ft

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ updateJSONURL="${UPDATE_URL}" #optional
2929
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
3030
#end
3131
# A URL for the "homepage" for this mod, displayed in the mod UI
32+
#if (${WEBSITE})
33+
displayURL="${WEBSITE}" #optional
34+
#else
3235
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
36+
#end
3337
# A file name (in the root of the mod JAR) containing a logo for display
3438
#logoFile="${ARTIFACT_ID}.png" #optional
3539
# A text field displayed in the mod UI

0 commit comments

Comments
 (0)