change to account for updated mapper
Some checks failed
Publish to snapshot maven / build (push) Failing after 17s
Some checks failed
Publish to snapshot maven / build (push) Failing after 17s
This commit is contained in:
parent
9b854c7be0
commit
ff38c2028e
|
@ -1,10 +1,9 @@
|
||||||
package org.ecorous.esnesnon.gradle.ext
|
package org.ecorous.esnesnon.gradle.ext
|
||||||
|
|
||||||
import org.ecorous.esnesnon.gradle.NonsenseGradlePlugin
|
import org.ecorous.esnesnon.gradle.NonsenseGradlePlugin
|
||||||
import org.ecorous.esnesnon.gradle.run.RunConfigGenerator
|
|
||||||
import org.ecorous.esnesnon.gradle.VersionChecker
|
import org.ecorous.esnesnon.gradle.VersionChecker
|
||||||
|
import org.ecorous.esnesnon.gradle.run.RunConfigGenerator
|
||||||
import org.ecorous.esnesnon.nonsense_remapper.NonsenseRemapper
|
import org.ecorous.esnesnon.nonsense_remapper.NonsenseRemapper
|
||||||
import org.ecorous.esnesnon.nonsense_remapper.api.Mapper
|
|
||||||
import org.ecorous.esnesnon.nonsense_remapper.parser.ProguardParser
|
import org.ecorous.esnesnon.nonsense_remapper.parser.ProguardParser
|
||||||
import org.ecorous.esnesnon.nonsense_remapper.provider.MojmapProvider
|
import org.ecorous.esnesnon.nonsense_remapper.provider.MojmapProvider
|
||||||
import org.ecorous.esnesnon.nonsense_remapper.provider.ParchmentProvider
|
import org.ecorous.esnesnon.nonsense_remapper.provider.ParchmentProvider
|
||||||
|
@ -30,12 +29,12 @@ fun Project.minecraft(
|
||||||
println("Time to setup Minecraft!")
|
println("Time to setup Minecraft!")
|
||||||
if (remappedJar.notExists()) {
|
if (remappedJar.notExists()) {
|
||||||
println("Remapping the game...")
|
println("Remapping the game...")
|
||||||
val mapper = Mapper(ProguardParser.read(MojmapProvider.get(version).orElseThrow()).reverse())
|
val data = ProguardParser.read(MojmapProvider.get(version, clientJar.resolveSibling("client-$version.txt")).orElseThrow()).reverse()
|
||||||
val paramMappings = ParchmentProvider.getParchment(
|
val paramMappings = ParchmentProvider.getParchment(
|
||||||
version, parchmentVersion,
|
version, parchmentVersion,
|
||||||
NonsenseGradlePlugin.nonsenseCacheDir.resolve("org/parchmentmc/parchment/$version/$parchmentVersion")
|
NonsenseGradlePlugin.nonsenseCacheDir.resolve("org/parchmentmc/parchment/$version/$parchmentVersion")
|
||||||
)
|
)
|
||||||
NonsenseRemapper.remap(mapper, clientJar, remappedJar, true, paramMappings)
|
NonsenseRemapper.remap(data, clientJar, remappedJar, true, paramMappings)
|
||||||
}
|
}
|
||||||
println("Adding dependencies...")
|
println("Adding dependencies...")
|
||||||
VersionChecker.getDependencies(version) {
|
VersionChecker.getDependencies(version) {
|
||||||
|
|
Loading…
Reference in a new issue