You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* xrandr crash
* `!` at the end of a folder name
* corrupted mmc-pack.json
* support different languages for mmc-pack.json
* fix locked jars false positive
---------
Co-authored-by: maskers <[email protected]>
let found = log.contains("~StubRoutines::SafeFetch32");
471
474
found.then_some(issue)
472
475
}
476
+
477
+
fnxrandr(log:&str) -> Issue{
478
+
let issue = (
479
+
"Missing xrandr".to_string(),
480
+
"This crash is caused by not having xrandr installed on Linux on Minecraft versions that use LWJGL 2."
481
+
.to_string(),
482
+
);
483
+
484
+
let found = log.contains("at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes");
485
+
found.then_some(issue)
486
+
}
487
+
488
+
fnfolder_name(log:&str) -> Issue{
489
+
let issue = (
490
+
"`!` in folder name".to_string(),
491
+
"Having a `!` in any folder is known to cause issues. If it's in your instance name, make sure to rename the actual instance folder, **not** the instance name in Prism."
492
+
.to_string(),
493
+
);
494
+
495
+
let found = Regex::new(r"Minecraft folder is:\n.*!/")
496
+
.unwrap()
497
+
.is_match(log);
498
+
499
+
found.then_some(issue)
500
+
}
501
+
502
+
fncorrupted_instance(log:&str) -> Issue{
503
+
let issue = (
504
+
"Corrupted instance files".to_string(),
505
+
"Your instance's `mmc-pack.json` appears to be corrupted. Make a new instance and copy over your data between `.minecraft` folders. To prevent this in the future, ensure your system has sufficient disk space and avoid forcefully shutting down your PC."
506
+
.to_string(),
507
+
);
508
+
509
+
let found = Regex::new(r"mmc-pack.json.*illegal value")
0 commit comments