Add detection for "architectury.common.marker" to remap

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-05-10 23:12:54 +08:00
parent 162a903423
commit 3364e7ae64

View File

@@ -129,6 +129,11 @@ public class ModCompileRemapper {
File input = artifact.getFile();
try (ZipFile zipFile = new ZipFile(input)) {
if (zipFile.getEntry("architectury.common.marker") != null) {
logger.info("Found architectury common mod in " + config + ": {}", artifact.getId());
return true;
}
if (forge) {
if (zipFile.getEntry("META-INF/mods.toml") != null) {
logger.info("Found Forge mod in " + config + ": {}", artifact.getId());