feat(crash): TwilightForest may be incompatible with OptiFine on Minecraft 1.16.5.

This commit is contained in:
huanghongxun
2021-10-20 02:09:50 +08:00
parent 0b444bc5a2
commit 16c96419d3
4 changed files with 148 additions and 1 deletions

View File

@@ -158,6 +158,9 @@ public class GameCrashWindow extends Stage {
translateFabricModId(result.getMatcher().group("mod")),
result.getMatcher().group("version")));
break;
case TWILIGHT_FOREST_OPTIFINE:
reasonText.append(i18n("game.crash.reason.mod", "OptiFine"));
break;
default:
reasonText.append(i18n("game.crash.reason." + result.getRule().name().toLowerCase(Locale.ROOT),
Arrays.stream(result.getRule().getGroupNames()).map(groupName -> result.getMatcher().group(groupName))