Skip to content

Commit

Permalink
Link to the MultiMC Wiki's page on Java
Browse files Browse the repository at this point in the history
  • Loading branch information
Scotsguy committed Jan 9, 2020
1 parent 7091606 commit e30d4d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn multimc_in_program_files(log: &str) -> Option<(&str, String)> {
fn server_java(log: &str) -> Option<(&str, String)> {
const TRIGGER: &str = "-Bit Server VM warning";
if log.contains(TRIGGER) {
Some(("‼", "You're using the server version of Java. You should install the desktop version via your distribution's package manager.".to_string()))
Some(("‼", "You're using the server version of Java. [See here for help installing the correct version.](https://github.com/MultiMC/MultiMC5/wiki/Using-the-right-Java)".to_string()))
} else {
None
}
Expand Down Expand Up @@ -82,7 +82,7 @@ fn java_version(log: &str) -> Option<(&str, String)> {
Regex::new(r"Java is version (1.)??(?P<ver>6|7|9|10|11|12)+\..+,").unwrap();
}
if let Some(capture) = RE.captures(log) {
Some(("❗", format!("You're using Java {}. Versions other than Java 8 are not designed to be used with Minecraft and may cause issues. You should install Java 8 from [this link](https://java.com/en/download/manual.jsp).",
Some(("❗", format!("You're using Java {}. Versions other than Java 8 are not designed to be used with Minecraft and may cause issues. [See here for help installing the correct version.](https://github.com/MultiMC/MultiMC5/wiki/Using-the-right-Java)",
capture.name("ver")?.as_str())))
} else {
None
Expand Down

0 comments on commit e30d4d0

Please sign in to comment.