mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
use more reliable renamer, update Stitch - fix #46
This commit is contained in:
@@ -91,8 +91,10 @@ public class SourceRemapper {
|
||||
}
|
||||
|
||||
source = new File(destination.getAbsolutePath().substring(0, destination.getAbsolutePath().lastIndexOf('.')) + "-dev.jar");
|
||||
if (!destination.renameTo(source)) {
|
||||
throw new RuntimeException("Could not rename " + destination.getName() + "!");
|
||||
try {
|
||||
com.google.common.io.Files.move(destination, source);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Could not rename " + destination.getName() + "!", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user