mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Only remap jars when required
This commit is contained in:
@@ -54,13 +54,15 @@ public class MinecraftJarProvider {
|
||||
mergeJars(project);
|
||||
}
|
||||
|
||||
if (getMappedJar().exists()) {
|
||||
getMappedJar().delete();
|
||||
if(!getMappedJar().exists() || !getIntermediaryJar().exists()){
|
||||
if (getMappedJar().exists()) {
|
||||
getMappedJar().delete();
|
||||
}
|
||||
if (getIntermediaryJar().exists()) {
|
||||
getIntermediaryJar().delete();
|
||||
}
|
||||
new MapJarsTiny().mapJars(this, project);
|
||||
}
|
||||
if (getIntermediaryJar().exists()) {
|
||||
getIntermediaryJar().delete();
|
||||
}
|
||||
new MapJarsTiny().mapJars(this, project);
|
||||
|
||||
if (!MINECRAFT_MAPPED_JAR.exists()) {
|
||||
throw new RuntimeException("mapped jar not found");
|
||||
|
||||
Reference in New Issue
Block a user