Merge pull request #58 from Cadiboo/patch-1

Fix multiline mod descriptions resulting in an invalid `fabric.mod.json`
This commit is contained in:
Jared 2024-06-14 12:00:34 -06:00 committed by GitHub
commit 74686cf664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ mod_author=Jared
mod_id=examplemod
license=CC0-1.0
credits=
description=The description of your mod. \nAccepts multilines.
description=The description of your mod. \\nAccepts multilines (but they must be double-escaped).
minecraft_version_range=[1.20.6, 1.21)
# Fabric

View File

@ -11,7 +11,7 @@ displayName = "${mod_name}" #mandatory
logoFile="${mod_id}.png" #optional
credits="${credits}" #optional
authors = "${mod_author}" #optional
description = '''${description}''' #mandatory (Supports multiline text)
description = "${description}" #mandatory (Supports multiline text)
[[mixins]]
config = "${mod_id}.mixins.json"
[[mixins]]
@ -33,4 +33,4 @@ side = "BOTH"
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
# stop your mod loading on the server for example.
#[features.${mod_id}]
#openGLVersion="[3.2,)"
#openGLVersion="[3.2,)"