Skip to content

Commit

Permalink
添加更多崩溃分析项
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed May 4, 2024
1 parent 976d4c0 commit 289d2f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions MinecraftLaunch/Classes/Enums/CrashCauses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public enum CrashCauses {
DecompressedMod,
IncorrectModConfig,
ModCausedGameCrash,
MissingOrUnsupportedMandatoryMod,

#endregion

Expand Down
7 changes: 7 additions & 0 deletions MinecraftLaunch/Components/Analyzer/GameLogAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ private IEnumerable<CrashReport> 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 {
Expand Down
2 changes: 1 addition & 1 deletion MinecraftLaunch/MinecraftLaunch.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>3.1.0-preview01</Version>
<Version>3.1.0-preview02</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 289d2f2

Please sign in to comment.