Skip to content

Commit

Permalink
1.20.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Sep 12, 2024
1 parent e81959e commit 652808a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: ["mcjars", "0x7d8"]
ko_fi: "rjansen"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@

public class NeoForgeServerJAR {
public static void main(final String[] args) {
String directoryPath = "libraries/net/neoforged/neoforge";
String directoryPath = null;
File neoforgeDir = new File("libraries/net/neoforged/neoforge");
File forgeDir = new File("libraries/net/neoforged/forge");

if (neoforgeDir.exists() && neoforgeDir.isDirectory()) {
directoryPath = neoforgeDir.getPath();
} else if (forgeDir.exists() && forgeDir.isDirectory()) {
directoryPath = forgeDir.getPath();
} else {
ErrorReporter.error("10", true);
}

String forgeVersion = null;
File directory = new File(directoryPath);
File[] filesAndDirs = directory.listFiles();
Expand Down

0 comments on commit 652808a

Please sign in to comment.