Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
aagrishankov committed Jan 16, 2022
1 parent fdc815f commit 0fb2121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ checkPropertyExists("usesShadowedDependencies")
checkPropertyExists("developmentEnvironmentUserName")


modId = modId.replaceAll("\\|", "")

String javaSourceDir = "src/main/java/"

String targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/")
Expand Down Expand Up @@ -224,7 +226,7 @@ def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + "mixins.srg"

task generateAssets {
if (usesMixins.toBoolean()) {
getFile("/src/main/resources/mixins." + modId.replaceAll("\\|", "") + ".json").text = """{
getFile("/src/main/resources/mixins." + modId + ".json").text = """{
"required": true,
"minVersion": "0.7.11",
"package": "${modGroup}.${mixinsPackage}",
Expand Down

0 comments on commit 0fb2121

Please sign in to comment.