Skip to content

Commit

Permalink
Merge pull request #58 from Cadiboo/patch-1
Browse files Browse the repository at this point in the history
Fix multiline mod descriptions resulting in an invalid `fabric.mod.json`
  • Loading branch information
jaredlll08 authored Jun 14, 2024
2 parents f2b74f2 + b8be7a4 commit 74686cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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,)"

0 comments on commit 74686cf

Please sign in to comment.