Skip to content

Commit

Permalink
Use MappingNsCompleter to populate none obf class names in the interm…
Browse files Browse the repository at this point in the history
…ediary column.

It seems a few parts of our toolchain dont like this.
  • Loading branch information
modmuss50 committed Apr 26, 2023
1 parent ffbf9a6 commit af69f1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ plugins {
id 'maven-publish'
}

import net.fabricmc.mappingio.MappingReader;
import net.fabricmc.mappingio.MappingWriter;
import net.fabricmc.mappingio.format.MappingFormat;
import net.fabricmc.mappingio.MappingReader
import net.fabricmc.mappingio.MappingWriter
import net.fabricmc.mappingio.format.MappingFormat
import net.fabricmc.mappingio.adapter.MappingNsCompleter

static List<String> getPublishedVersions() {
def xml = new URL("https://maven.fabricmc.net/net/fabricmc/intermediary/maven-metadata.xml").text
Expand Down Expand Up @@ -50,7 +51,8 @@ file('mappings').eachFile {

doLast {
MappingWriter.create(v2MappingFile.toPath(), MappingFormat.TINY_2).withCloseable {
MappingReader.read(v1MappingFile.toPath(), it)
def visitor = new MappingNsCompleter(it, ["intermediary": "official"], true)
MappingReader.read(v1MappingFile.toPath(), visitor)
}
}
}
Expand Down

0 comments on commit af69f1f

Please sign in to comment.