mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Fix merge conflicts
This commit is contained in:
@@ -24,11 +24,10 @@
|
||||
|
||||
package net.fabricmc.loom.api.remapping;
|
||||
|
||||
import dev.architectury.tinyremapper.TinyRemapper;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import net.fabricmc.tinyremapper.TinyRemapper;
|
||||
|
||||
/**
|
||||
* A remapper extension, that has direct access to the TinyRemapper APIs.
|
||||
*
|
||||
|
||||
@@ -183,7 +183,7 @@ public final class IncludedJarFactory {
|
||||
|
||||
File tempFile = new File(tempDir, input.getName());
|
||||
|
||||
if (tempFile.exists() && FabricModJsonFactory.isModJar(tempFile)) {
|
||||
if (tempFile.exists() && FabricModJsonFactory.isModJar(tempFile, LoomGradleExtension.get(project).getPlatform().get())) {
|
||||
return tempFile;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,9 +53,9 @@ public record TinyJarInfo(boolean v2, Optional<String> minecraftVersionId) {
|
||||
private static boolean doesJarContainV2Mappings(FileSystemUtil.Delegate fs) throws IOException {
|
||||
try (BufferedReader reader = Files.newBufferedReader(fs.getPath("mappings", "mappings.tiny"))) {
|
||||
return MappingReader.detectFormat(reader) == MappingFormat.TINY_2_FILE;
|
||||
}
|
||||
} catch (NoSuchFileException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static Optional<String> getMinecraftVersionId(FileSystemUtil.Delegate fs) throws IOException {
|
||||
|
||||
@@ -265,8 +265,6 @@ public abstract class LoomGradleExtensionApiImpl implements LoomGradleExtensionA
|
||||
return new LayeredMappingsDependency(getProject(), new GradleMappingContext(getProject(), builtSpec.getVersion().replace("+", "_").replace(".", "_")), builtSpec, builtSpec.getVersion());
|
||||
}
|
||||
|
||||
protected abstract String getMinecraftVersion();
|
||||
|
||||
@Override
|
||||
public void runs(Action<NamedDomainObjectContainer<RunConfigSettings>> action) {
|
||||
action.execute(runConfigs);
|
||||
@@ -558,11 +556,6 @@ public abstract class LoomGradleExtensionApiImpl implements LoomGradleExtensionA
|
||||
throw new RuntimeException("Yeah... something is really wrong");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getMinecraftVersion() {
|
||||
throw new RuntimeException("Yeah... something is really wrong");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ForgeExtensionAPI getForge() {
|
||||
throw new RuntimeException("Yeah... something is really wrong");
|
||||
|
||||
@@ -302,11 +302,6 @@ public class LoomGradleExtensionImpl extends LoomGradleExtensionApiImpl implemen
|
||||
provider.getDownloader().disallowChanges();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getMinecraftVersion() {
|
||||
return getMinecraftProvider().minecraftVersion();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ForgeExtensionAPI getForge() {
|
||||
ModPlatform.assertPlatform(this, ModPlatform.FORGE);
|
||||
|
||||
@@ -26,6 +26,8 @@ package net.fabricmc.loom.extension;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import dev.architectury.tinyremapper.TinyRemapper;
|
||||
import dev.architectury.tinyremapper.api.TrClass;
|
||||
import org.gradle.api.model.ObjectFactory;
|
||||
import org.gradle.api.provider.Property;
|
||||
import org.gradle.api.tasks.Input;
|
||||
@@ -39,8 +41,6 @@ import net.fabricmc.loom.api.remapping.RemapperContext;
|
||||
import net.fabricmc.loom.api.remapping.RemapperExtension;
|
||||
import net.fabricmc.loom.api.remapping.RemapperParameters;
|
||||
import net.fabricmc.loom.api.remapping.TinyRemapperExtension;
|
||||
import net.fabricmc.tinyremapper.TinyRemapper;
|
||||
import net.fabricmc.tinyremapper.api.TrClass;
|
||||
|
||||
public abstract class RemapperExtensionHolder {
|
||||
// Null when RemapperParameters.None.class
|
||||
|
||||
Reference in New Issue
Block a user