Forge 1.17+ support
This commit is contained in:
1 parent
984647084b
commit
5d7c77d697
16 files changed
+146
-247
No files matched your search
@@ -419,7 +419,10 @@ public final class Tools
|
||||
if (libItem._skip) continue;
|
||||
|
||||
String[] libInfos = libItem.name.split(":");
|
||||
libDir.add(Tools.DIR_HOME_LIBRARY + "/" + Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
|
||||
String fullPath = Tools.DIR_HOME_LIBRARY + "/" + Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]);
|
||||
if (!libDir.contains(fullPath)) {
|
||||
libDir.add(fullPath);
|
||||
}
|
||||
}
|
||||
return libDir.toArray(new String[0]);
|
||||
}
|
||||
@@ -458,11 +461,11 @@ public final class Tools
|
||||
libAdded.name.substring(libAddedName.length() + 1) + " with " +
|
||||
lib.name.substring(libName.length() + 1));
|
||||
libList.set(i, lib);
|
||||
continue loop_1;
|
||||
libName = null;
|
||||
}
|
||||
}
|
||||
|
||||
libList.add(lib);
|
||||
if (libName != null) libList.add(lib);
|
||||
}
|
||||
} finally {
|
||||
inheritsVer.libraries = libList.toArray(new DependentLibrary[0]);
|
||||
|
||||
@@ -125,10 +125,9 @@ public class UIKit {
|
||||
|
||||
public static native void refreshAWTBuffer(int[] array);
|
||||
|
||||
public static native int launchUI();
|
||||
// public static native void runOnUIThread(UIKitCallback callback);
|
||||
|
||||
|
||||
public static native void showError(String title, String message, boolean exitIfOk);
|
||||
|
||||
|
||||
private static native void updateMCGuiScale(int scale);
|
||||
}
|
||||
}
|
||||
@@ -71,5 +71,6 @@ public class MCOptionUtils
|
||||
System.err.println("Could not save options.txt");
|
||||
e.printStackTrace();
|
||||
}
|
||||
mLineList = null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user