Skip to content

Commit

Permalink
Disable remapping for Forge jar
Browse files Browse the repository at this point in the history
  • Loading branch information
soir20 committed May 10, 2024
1 parent 8aab087 commit cec09e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import net.fabricmc.loom.api.mappings.layered.MappingsNamespace

/*
* MoreMcmeta is a Minecraft mod expanding texture configuration capabilities.
* Copyright (C) 2023 soir20
Expand Down Expand Up @@ -69,6 +71,11 @@ shadowJar {
}

remapJar {

// In 1.20.6+, Forge applies remapping at runtime, so we need to disable
// remapping in the output jar.
sourceNamespace = MappingsNamespace.INTERMEDIARY.toString()

inputFile.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier.set "forge"
Expand Down

0 comments on commit cec09e7

Please sign in to comment.