mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-01 21:17:46 -05:00
Update Unprotect to 1.2.0 to fix hot swap issues
This commit is contained in:
@@ -42,6 +42,7 @@ import org.gradle.api.tasks.TaskAction;
|
||||
|
||||
import net.fabricmc.loom.configuration.launch.LaunchProviderSettings;
|
||||
import net.fabricmc.loom.task.AbstractLoomTask;
|
||||
import net.fabricmc.loom.util.Constants;
|
||||
import net.fabricmc.loom.util.PropertyUtil;
|
||||
|
||||
public abstract class GenerateDLIConfigTask extends AbstractLoomTask {
|
||||
@@ -73,9 +74,19 @@ public abstract class GenerateDLIConfigTask extends AbstractLoomTask {
|
||||
}
|
||||
|
||||
if (getExtension().isForge()) {
|
||||
// Find the mapping files for Unprotect to use for figuring out
|
||||
// which classes are from Minecraft.
|
||||
String unprotectMappings = getProject().getConfigurations()
|
||||
.getByName(Constants.Configurations.MAPPINGS_FINAL)
|
||||
.resolve()
|
||||
.stream()
|
||||
.map(File::getAbsolutePath)
|
||||
.collect(Collectors.joining(File.pathSeparator));
|
||||
|
||||
launchConfig
|
||||
// Should match YarnNamingService.PATH_TO_MAPPINGS in forge-runtime
|
||||
.property("fabric.yarnWithSrg.path", getExtension().getMappingsProvider().tinyMappingsWithSrg.toAbsolutePath().toString())
|
||||
.property("unprotect.mappings", unprotectMappings)
|
||||
|
||||
.argument("data", "--all")
|
||||
.argument("data", "--mod")
|
||||
|
||||
@@ -144,7 +144,7 @@ public class Constants {
|
||||
public static final String FORGE_RUNTIME = "1.1.3";
|
||||
public static final String ACCESS_TRANSFORMERS = "3.0.1";
|
||||
public static final String ACCESS_TRANSFORMERS_NEW = "8.0.5";
|
||||
public static final String UNPROTECT = "1.0.0";
|
||||
public static final String UNPROTECT = "1.2.0";
|
||||
|
||||
private Versions() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user