mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Support ARM natives, rewrite native handling and misc cleanup. (#554)
* Rewrite natives handling, upgrade LWJGL on ARM machines. * Remove old natives override hack, should now always be done via gradle. * Use "idea" everywhere * Add server specific libraries onto their own classpath. Includes misc code cleanup. * Start on writing the excluded server libs. * Gradle deprecation fixes, and misc cleanup * Add support mod. * Make native support mod none transitive. * Update gradle.
This commit is contained in:
@@ -25,18 +25,12 @@
|
||||
package net.fabricmc.loom.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
public final class ModUtils {
|
||||
private ModUtils() {
|
||||
}
|
||||
|
||||
public static boolean isMod(File input) {
|
||||
try (ZipFile zipFile = new ZipFile(input)) {
|
||||
return zipFile.getEntry("fabric.mod.json") != null;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
return ZipUtils.contains(input.toPath(), "fabric.mod.json");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user