Skip to content

Commit

Permalink
Correct reading metadata from forge mod jars
Browse files Browse the repository at this point in the history
  • Loading branch information
Skidamek committed Sep 16, 2023
1 parent 9587e35 commit ecae0a0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public static String getModID(Path file) {
}

modID = split[1].replaceAll("\"", "").trim();
modID = modID.split(" ")[0]; // get first string before any # comments starts
}

} else {
Expand Down Expand Up @@ -149,6 +150,7 @@ public static String getModVersion(Path file) {

}

version = version.split(" ")[0]; // get first string before any # comments starts
modVersion = version;
}

Expand Down

0 comments on commit ecae0a0

Please sign in to comment.