mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Add skipPrebake
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user