add some debug code for refmap issue
parent
b00b42e3bf
commit
f61b06f616
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue