mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
fix #28
This commit is contained in:
@@ -66,6 +66,11 @@ public class ModRemapper {
|
||||
File modJarOutput = new File(s.substring(0, s.length() - 4) + ".remapped.jar");
|
||||
Path modJarOutputPath = modJarOutput.toPath();
|
||||
|
||||
File modJarUnmappedCopy = new File(s.substring(0, s.length() - 4) + "-dev.jar");
|
||||
if (modJarUnmappedCopy.exists()) {
|
||||
modJarUnmappedCopy.delete();
|
||||
}
|
||||
|
||||
File mixinMapFile = mappingsProvider.MAPPINGS_MIXIN_EXPORT;
|
||||
Path mixinMapPath = mixinMapFile.toPath();
|
||||
|
||||
@@ -99,7 +104,8 @@ public class ModRemapper {
|
||||
}
|
||||
|
||||
if (modJar.exists()) {
|
||||
modJar.delete();
|
||||
modJar.renameTo(modJarUnmappedCopy);
|
||||
extension.addUnmappedMod(modJarUnmappedCopy);
|
||||
}
|
||||
|
||||
modJarOutput.renameTo(modJar);
|
||||
|
||||
Reference in New Issue
Block a user