Skip to content

Commit 4dca88b

Browse files
SlutMrBlue
authored andcommitted
Fix NRE with auto patch logging when using reverse patches
1 parent eeb3ebf commit 4dca88b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugins/CSPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public override void HandleAddedToManager(PluginManager manager)
160160

161161
foreach (MethodInfo method in harmonyMethods)
162162
{
163-
Interface.Oxide.LogInfo($"[{Title}] Automatically Harmony patched '{method.Name}' method. ({nestedType.Name})");
163+
Interface.Oxide.LogInfo($"[{Title}] Automatically Harmony patched '{method?.Name ?? "unknown"}' method. ({nestedType.Name})");
164164
}
165165
}
166166
catch (Exception ex)

0 commit comments

Comments
 (0)