summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Commands
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-11-21 14:10:09 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-11-21 14:10:09 -0500
commit85b947dced10f5398055af36b5fdb6b8d32a6a6b (patch)
treeefc2f877a6f41869a40b6d0a320e6d5c4fd591ca /src/SMAPI/Framework/Commands
parente20d26adcf7276c7f12ab9ab6ea0311953aa5194 (diff)
parenta0cb83ed406fc0447e8edf00e680585005480d23 (diff)
downloadSMAPI-85b947dced10f5398055af36b5fdb6b8d32a6a6b.tar.gz
SMAPI-85b947dced10f5398055af36b5fdb6b8d32a6a6b.tar.bz2
SMAPI-85b947dced10f5398055af36b5fdb6b8d32a6a6b.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Commands')
-rw-r--r--src/SMAPI/Framework/Commands/HarmonySummaryCommand.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Commands/HarmonySummaryCommand.cs b/src/SMAPI/Framework/Commands/HarmonySummaryCommand.cs
index 8fdd4282..f3731d16 100644
--- a/src/SMAPI/Framework/Commands/HarmonySummaryCommand.cs
+++ b/src/SMAPI/Framework/Commands/HarmonySummaryCommand.cs
@@ -112,9 +112,9 @@ namespace StardewModdingAPI.Framework.Commands
private IEnumerable<SearchResult> GetAllPatches()
{
#if HARMONY_2
- foreach (MethodBase method in Harmony.GetAllPatchedMethods())
+ foreach (MethodBase method in Harmony.GetAllPatchedMethods().ToArray())
#else
- foreach (MethodBase method in this.HarmonyInstance.GetPatchedMethods())
+ foreach (MethodBase method in this.HarmonyInstance.GetPatchedMethods().ToArray())
#endif
{
// get metadata for method