Skip to content

Commit

Permalink
Fix Forge 1.20.6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeprimm-mirific committed Jun 3, 2024
1 parent d78a4fd commit 4354720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
21 changes: 3 additions & 18 deletions forge-1.20.6/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.+', changing: true
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '[6.0.24,6.2)', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
Expand All @@ -27,6 +27,8 @@ ext.buildNumber = System.getenv().BUILD_NUMBER ?: "Dev"
minecraft {
mappings channel: 'official', version: '1.20.6'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
reobf = false
copyIdeResources = true
runs {
server {
workingDirectory project.file('run').canonicalPath
Expand Down Expand Up @@ -73,21 +75,4 @@ shadowJar.doLast {
ant.checksum file: task.archivePath
}

afterEvaluate {
reobf {
shadowJar {
mappings = createMcpToSrg.output
}
}
}

task deobfJar(type: Jar) {
from sourceSets.main.output
archiveClassifier = 'dev'
}

artifacts {
archives deobfJar
}

build.dependsOn(shadowJar)
2 changes: 1 addition & 1 deletion forge-1.20.6/src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"description": {
"text": "Dynmap resources"
},
"pack_format": 32
"pack_format": 22
}
}

0 comments on commit 4354720

Please sign in to comment.