Fix tests crash with fabric mode

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-09-18 17:25:13 +08:00
parent 145ee69018
commit 6f9fb64e34

View File

@@ -156,9 +156,9 @@ public class MappingsProviderImpl extends DependencyProvider implements Mappings
// Merge tiny mappings with srg
SrgMerger.mergeSrg(this::getMojmapSrgFileIfPossible, getRawSrgFile(), tinyMappings, tinyMappingsWithSrg, true);
}
}
mappingTreeWithSrg = readMappings(tinyMappingsWithSrg);
mappingTreeWithSrg = readMappings(tinyMappingsWithSrg);
}
if (Files.notExists(tinyMappingsJar) || isRefreshDeps()) {
ZipUtil.pack(new ZipEntrySource[] {new FileSource("mappings/mappings.tiny", tinyMappings.toFile())}, tinyMappingsJar.toFile());