From 289d2f2a8be5ce0ecbadee643a9cf4bed50963eb Mon Sep 17 00:00:00 2001 From: YangSpring114 Date: Sat, 4 May 2024 10:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=B4=E5=A4=9A=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=E5=88=86=E6=9E=90=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MinecraftLaunch/Classes/Enums/CrashCauses.cs | 1 + MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs | 7 +++++++ MinecraftLaunch/MinecraftLaunch.csproj | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/MinecraftLaunch/Classes/Enums/CrashCauses.cs b/MinecraftLaunch/Classes/Enums/CrashCauses.cs index 3865af9..7f6a483 100644 --- a/MinecraftLaunch/Classes/Enums/CrashCauses.cs +++ b/MinecraftLaunch/Classes/Enums/CrashCauses.cs @@ -36,6 +36,7 @@ public enum CrashCauses { DecompressedMod, IncorrectModConfig, ModCausedGameCrash, + MissingOrUnsupportedMandatoryMod, #endregion diff --git a/MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs b/MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs index 8bb81b9..92eca35 100644 --- a/MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs +++ b/MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs @@ -242,6 +242,13 @@ private IEnumerable SpecificProcessGameLogs() { }; } + if (log.Contains("Missing or unsupported mandatory dependencies")) { + yield return new CrashReport { + Original = log, + CrashCauses = CrashCauses.MissingOrUnsupportedMandatoryMod, + }; + } + if (log.Contains("java.lang.NoSuchMethodError: net.minecraft.world.server.ChunkManager$ProxyTicketManager.shouldForceTicks(J)Z") && log.Contains("OptiFine")) { yield return new CrashReport { diff --git a/MinecraftLaunch/MinecraftLaunch.csproj b/MinecraftLaunch/MinecraftLaunch.csproj index 7b41117..2623f94 100644 --- a/MinecraftLaunch/MinecraftLaunch.csproj +++ b/MinecraftLaunch/MinecraftLaunch.csproj @@ -1,6 +1,6 @@  - 3.1.0-preview01 + 3.1.0-preview02