Add skipPrebake

dev/0.11
modmuss50 2018-06-20 13:12:02 +01:00
parent 9e4012571a
commit fb94d092ad
No known key found for this signature in database
GPG Key ID: 773D17BE8BF49C82
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public class LoomGradleExtension {
public String omlVersion;
public String pomfVersion;
public String refmapName;
public boolean skipPrebake = false;
public boolean localMappings = false;
//Not to be set in the build.gradle

View File

@ -56,7 +56,7 @@ public class ProcessModsTask extends DefaultTask {
if (Constants.MINECRAFT_FINAL_JAR.get(extension).exists()) {
Constants.MINECRAFT_FINAL_JAR.get(extension).delete();
}
if (mods.size() == 0) {
if (mods.size() == 0 || extension.skipPrebake) {
getProject().getLogger().lifecycle(":skipping mixin prebake");
FileUtils.copyFile(Constants.MINECRAFT_MERGED_JAR.get(extension), Constants.MINECRAFT_MIXED_JAR.get(extension));
} else {