Skip to content

Commit 99f815d

Browse files
committed
Do not attempt to format mod description contents
Fixes neoforged#1561 on 1.21.1
1 parent 71a734b commit 99f815d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/net/neoforged/neoforge/client/gui/ModListScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public void upload() {
416416
lines.add(FMLTranslations.parseMessage("fml.menu.mods.info.updateavailable", vercheck.url() == null ? "" : vercheck.url()).replace("\r\n", "\n"));
417417
lines.add(FMLTranslations.parseMessage("fml.menu.mods.info.license", selectedMod.getOwningFile().getLicense()).replace("\r\n", "\n"));
418418
lines.add(null);
419-
lines.add(FMLTranslations.parseMessageWithFallback("fml.menu.mods.info.description." + selectedMod.getModId(), selectedMod::getDescription));
419+
lines.add(FMLTranslations.getPattern("fml.menu.mods.info.description." + selectedMod.getModId(), selectedMod::getDescription));
420420

421421
/* Removed because people bitched that this information was misleading.
422422
lines.add(null);

tests/src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license="LGPL v2.1"
77

88
[[mods]]
99
modId="neotests"
10-
description="NeoForge tests. Change the language to fr_fr and the description should change too."
10+
description="NeoForge's tests. Change the language to fr_fr and the description should change too."
1111
enumExtensions="META-INF/enumextensions.json"
1212
[[mods]]
1313
modId="configui"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"fml.menu.mods.info.description.neotests": "Le mod de test de NeoForge oh la la !"
2+
"fml.menu.mods.info.description.neotests": "Le mod de test de NeoForge oh la la ! J'aime le français !"
33
}

0 commit comments

Comments
 (0)