Skip to content

Commit

Permalink
Fix SaveHashes
Browse files Browse the repository at this point in the history
  • Loading branch information
notfood committed Apr 12, 2024
1 parent 824d2f4 commit f40d04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Client/Debug/DebugActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ public static void SaveHashes()

// We only care about transpiled methods that aren't part of MP.
var query = Multiplayer.harmony.GetPatchedMethods()
.Where(m => !m.DeclaringType.Namespace.StartsWith("Multiplayer") &&
!Harmony.GetPatchInfo(m).Transpilers.NullOrEmpty());
.Where(m => !(m.DeclaringType.Namespace?.StartsWith("Multiplayer") ?? false)
&& !Harmony.GetPatchInfo(m).Transpilers.NullOrEmpty());

foreach (var method in query) {
builder.Append(GetMethodHash(method));
Expand Down

0 comments on commit f40d04d

Please sign in to comment.