Skip to content

Commit

Permalink
Also generate neoforge.mods.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Apr 8, 2024
1 parent 0b1b2fd commit cb76e12
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public void doEdit(TransformerContext context, FileAccess output) throws Excepti
"license = \"Generated\"\n" +
"[[mods]]\n" +
"modId = \"" + fakeModId + "\"\n");
output.addFile("META-INF/neoforge.mods.toml",
"modLoader = \"javafml\"\n" +
"loaderVersion = \"[1,)\"\n" +
"license = \"Generated\"\n" +
"[[mods]]\n" +
"modId = \"" + fakeModId + "\"\n");
output.addFile("pack.mcmeta",
"{\"pack\":{\"description\":\"Generated\",\"pack_format\":" + System.getProperty(BuiltinProperties.MCMETA_VERSION, "4") + "}}");
output.addFile("generated" + fakeModId + "/" + fakeModId + ".class", generateClass(fakeModId));
Expand Down

0 comments on commit cb76e12

Please sign in to comment.