Add skipPrebake
parent
9e4012571a
commit
fb94d092ad
|
@ -34,6 +34,7 @@ public class LoomGradleExtension {
|
||||||
public String omlVersion;
|
public String omlVersion;
|
||||||
public String pomfVersion;
|
public String pomfVersion;
|
||||||
public String refmapName;
|
public String refmapName;
|
||||||
|
public boolean skipPrebake = false;
|
||||||
public boolean localMappings = false;
|
public boolean localMappings = false;
|
||||||
|
|
||||||
//Not to be set in the build.gradle
|
//Not to be set in the build.gradle
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class ProcessModsTask extends DefaultTask {
|
||||||
if (Constants.MINECRAFT_FINAL_JAR.get(extension).exists()) {
|
if (Constants.MINECRAFT_FINAL_JAR.get(extension).exists()) {
|
||||||
Constants.MINECRAFT_FINAL_JAR.get(extension).delete();
|
Constants.MINECRAFT_FINAL_JAR.get(extension).delete();
|
||||||
}
|
}
|
||||||
if (mods.size() == 0) {
|
if (mods.size() == 0 || extension.skipPrebake) {
|
||||||
getProject().getLogger().lifecycle(":skipping mixin prebake");
|
getProject().getLogger().lifecycle(":skipping mixin prebake");
|
||||||
FileUtils.copyFile(Constants.MINECRAFT_MERGED_JAR.get(extension), Constants.MINECRAFT_MIXED_JAR.get(extension));
|
FileUtils.copyFile(Constants.MINECRAFT_MERGED_JAR.get(extension), Constants.MINECRAFT_MIXED_JAR.get(extension));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue