Skip to content

Commit

Permalink
Fix Minecraft jar name on Neo
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Nov 2, 2023
1 parent 6b0ebe1 commit 04074fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ private LoomGradleExtension getExtension() {
private void initPatchedFiles() {
String forgeVersion = getExtension().getForgeProvider().getVersion().getCombined();
Path forgeWorkingDir = ForgeProvider.getForgeCache(project);
String patchId = "forge-" + forgeVersion + "-";
// Note: strings used instead of platform id since FML requires one of these exact strings
// depending on the loader to recognise Minecraft.
String patchId = (getExtension().isNeoForge() ? "neoforge" : "forge") + "-" + forgeVersion + "-";

minecraftProvider.setJarPrefix(patchId);

Expand Down

0 comments on commit 04074fb

Please sign in to comment.