summaryrefslogtreecommitdiff
path: root/src/SMAPI/Patches/EventErrorPatch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Patches/EventErrorPatch.cs')
-rw-r--r--src/SMAPI/Patches/EventErrorPatch.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/SMAPI/Patches/EventErrorPatch.cs b/src/SMAPI/Patches/EventErrorPatch.cs
index 4dbb25f3..46651387 100644
--- a/src/SMAPI/Patches/EventErrorPatch.cs
+++ b/src/SMAPI/Patches/EventErrorPatch.cs
@@ -11,7 +11,7 @@ using StardewValley;
namespace StardewModdingAPI.Patches
{
- /// <summary>A Harmony patch for the <see cref="Dialogue"/> constructor which intercepts invalid dialogue lines and logs an error instead of crashing.</summary>
+ /// <summary>A Harmony patch for <see cref="GameLocation.checkEventPrecondition"/> which intercepts invalid preconditions and logs an error instead of crashing.</summary>
/// <remarks>Patch methods must be static for Harmony to work correctly. See the Harmony documentation before renaming patch arguments.</remarks>
[SuppressMessage("ReSharper", "InconsistentNaming", Justification = "Argument names are defined by Harmony and methods are named for clarity.")]
[SuppressMessage("ReSharper", "IdentifierTypo", Justification = "Argument names are defined by Harmony and methods are named for clarity.")]
@@ -27,7 +27,7 @@ namespace StardewModdingAPI.Patches
/*********
** Accessors
*********/
- /// <summary>A unique name for this patch.</summary>
+ /// <inheritdoc />
public string Name => nameof(EventErrorPatch);
@@ -41,8 +41,7 @@ namespace StardewModdingAPI.Patches
EventErrorPatch.MonitorForGame = monitorForGame;
}
- /// <summary>Apply the Harmony patch.</summary>
- /// <param name="harmony">The Harmony instance.</param>
+ /// <inheritdoc />
#if HARMONY_2
public void Apply(Harmony harmony)
{
@@ -66,7 +65,7 @@ namespace StardewModdingAPI.Patches
** Private methods
*********/
#if HARMONY_2
- /// <summary>The method to call instead of the GameLocation.CheckEventPrecondition.</summary>
+ /// <summary>The method to call instead of GameLocation.checkEventPrecondition.</summary>
/// <param name="__result">The return value of the original method.</param>
/// <param name="precondition">The precondition to be parsed.</param>
/// <param name="__exception">The exception thrown by the wrapped method, if any.</param>
@@ -82,7 +81,7 @@ namespace StardewModdingAPI.Patches
return null;
}
#else
- /// <summary>The method to call instead of the GameLocation.CheckEventPrecondition.</summary>
+ /// <summary>The method to call instead of GameLocation.checkEventPrecondition.</summary>
/// <param name="__instance">The instance being patched.</param>
/// <param name="__result">The return value of the original method.</param>
/// <param name="precondition">The precondition to be parsed.</param>