add some debug code for refmap issue

dev/0.11
asie 2018-12-12 07:16:01 +01:00
parent b00b42e3bf
commit f61b06f616
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public final class MixinRefmapHelper {
Set<String> mixinFilenames = findMixins(output, true); Set<String> mixinFilenames = findMixins(output, true);
if (mixinFilenames.size() > 0) { if (mixinFilenames.size() > 0) {
ZipUtil.transformEntries( return ZipUtil.transformEntries(
output, output,
mixinFilenames.stream() mixinFilenames.stream()
.map((f) -> new ZipEntryTransformerEntry(f, new StringZipEntryTransformer("UTF-8") { .map((f) -> new ZipEntryTransformerEntry(f, new StringZipEntryTransformer("UTF-8") {
@ -66,8 +66,6 @@ public final class MixinRefmapHelper {
} }
})).toArray(ZipEntryTransformerEntry[]::new) })).toArray(ZipEntryTransformerEntry[]::new)
); );
return true;
} else { } else {
return false; return false;
} }

View File

@ -100,7 +100,9 @@ public class ModRemapper {
} }
if (extension.refmapName != null && extension.refmapName.length() > 0) { if (extension.refmapName != null && extension.refmapName.length() > 0) {
MixinRefmapHelper.addRefmapName(extension.refmapName, modJarOutput); if (MixinRefmapHelper.addRefmapName(extension.refmapName, modJarOutput)) {
project.getLogger().debug("Transformed mixin reference maps in output JAR!");
}
} }
if (modJar.exists()) { if (modJar.exists()) {