build: add fg.deobf deps for SBW/Gunfire and fix processResources/mixin
This commit is contained in:
+5
-7
@@ -25,21 +25,19 @@ println "Java toolchain: ${java.toolchain.languageVersion.get()}"
|
|||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: findProperty('mappings_channel') ?: 'official', version: findProperty('mappings_version') ?: '1.20.1'
|
mappings channel: findProperty('mappings_channel') ?: 'official', version: findProperty('mappings_version') ?: '1.20.1'
|
||||||
copyIdeResources = true
|
copyIdeResources = true
|
||||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "net.minecraftforge:forge:${findProperty('minecraft_version')}-${findProperty('forge_version')}"
|
minecraft "net.minecraftforge:forge:${findProperty('minecraft_version')}-${findProperty('forge_version')}"
|
||||||
|
implementation fg.deobf(files('/mnt/c/Users/User/AppData/Roaming/AstralRinthApp/profiles/ZernOBT v2/mods/superbwarfare-0.8.9-final-mc1.20.1-6effe4385-all.jar'))
|
||||||
|
implementation fg.deobf(files('/tmp/GunfireOverhaul.jar'))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named('processResources', DuplicatesStrategy.INCLUDE).configure {
|
tasks.named('processResources').configure {
|
||||||
from(sourceSets.main.resources)
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
}
|
}
|
||||||
|
|
||||||
mixin {
|
|
||||||
add sourceSets.main, 'mixins.gunfiresbfix.refmap.json'
|
|
||||||
config 'mixins.gunfiresbfix.json'
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
|
|||||||
Reference in New Issue
Block a user