mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 05:05:20 -05:00
@@ -70,11 +70,11 @@ import net.fabricmc.loom.configuration.mods.dependency.ModDependency;
|
||||
import net.fabricmc.loom.configuration.mods.dependency.ModDependencyFactory;
|
||||
import net.fabricmc.loom.configuration.mods.dependency.ModDependencyOptions;
|
||||
import net.fabricmc.loom.configuration.providers.minecraft.MinecraftSourceSets;
|
||||
import net.fabricmc.loom.util.AsyncCache;
|
||||
import net.fabricmc.loom.util.Checksum;
|
||||
import net.fabricmc.loom.util.Constants;
|
||||
import net.fabricmc.loom.util.ExceptionUtil;
|
||||
import net.fabricmc.loom.util.SourceRemapper;
|
||||
import net.fabricmc.loom.util.AsyncCache;
|
||||
import net.fabricmc.loom.util.gradle.SourceSetHelper;
|
||||
import net.fabricmc.loom.util.service.ServiceFactory;
|
||||
|
||||
@@ -361,7 +361,9 @@ public class ModConfigurationRemapper {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dependency.isCacheInvalid(project, "sources")) {
|
||||
LoomGradleExtension extension = LoomGradleExtension.get(project);
|
||||
|
||||
if (dependency.isCacheInvalid(project, "sources") || extension.refreshDeps()) {
|
||||
final Path output = dependency.getWorkingFile(project, "sources");
|
||||
|
||||
sourceRemapper.scheduleRemapSources(sourcesInput.toFile(), output.toFile(), false, true, () -> {
|
||||
|
||||
@@ -67,6 +67,7 @@ public class SourceRemapper {
|
||||
remapTasks.add((logger) -> {
|
||||
try {
|
||||
logger.progress("remapping sources - " + source.getName());
|
||||
Files.deleteIfExists(destination.toPath());
|
||||
remapSourcesInner(source, destination);
|
||||
ZipReprocessorUtil.reprocessZip(destination.toPath(), reproducibleFileOrder, preserveFileTimestamps);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user