mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Update Tools.java
This commit is contained in:
parent
479e39f3af
commit
dd177b7e1e
@ -365,7 +365,6 @@ public final class Tools {
|
||||
libStr.append(getPatchedFile(actualname));
|
||||
}
|
||||
for (String perJar : classpath) {
|
||||
Log.d(APP_NAME, "ADDED lib = " + perJar);
|
||||
if (!new File(perJar).exists()) {
|
||||
Log.d(APP_NAME, "Ignored non-exists file: " + perJar);
|
||||
continue;
|
||||
@ -556,6 +555,13 @@ public final class Tools {
|
||||
List<String> libDir = new ArrayList<String>();
|
||||
|
||||
for (DependentLibrary libItem: info.libraries) {
|
||||
if (libItem.rules != null) {
|
||||
for (JMinecraftVersionList.Arguments.ArgValue.ArgRules rule : libItem.rules) {
|
||||
if (rule.action.equals("allow") && rule.os.name.equals("osx")) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
String[] libInfos = libItem.name.split(":");
|
||||
libDir.add(Tools.DIR_HOME_LIBRARY + "/" + Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user