summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ErrorHandler/Patches
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-07-29 22:50:50 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-07-29 22:50:50 -0400
commit737a434ad6704d22776f463c192b9a9748ce2a21 (patch)
tree87d3a3e27e44f36f2a17776efa6492f1d4dd7797 /src/SMAPI.Mods.ErrorHandler/Patches
parent880cd7b8bacfcee2cc6a8e15b6b8ea5e05e9467c (diff)
downloadSMAPI-737a434ad6704d22776f463c192b9a9748ce2a21.tar.gz
SMAPI-737a434ad6704d22776f463c192b9a9748ce2a21.tar.bz2
SMAPI-737a434ad6704d22776f463c192b9a9748ce2a21.zip
reduce ErrorHandler's direct references to internal SMAPI code
That will allow removing the InternalsVisibleTo attribute to avoid namespace conflicts in an upcoming commit.
Diffstat (limited to 'src/SMAPI.Mods.ErrorHandler/Patches')
-rw-r--r--src/SMAPI.Mods.ErrorHandler/Patches/LoadErrorPatch.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Mods.ErrorHandler/Patches/LoadErrorPatch.cs b/src/SMAPI.Mods.ErrorHandler/Patches/LoadErrorPatch.cs
index e14dc662..cc0e5e52 100644
--- a/src/SMAPI.Mods.ErrorHandler/Patches/LoadErrorPatch.cs
+++ b/src/SMAPI.Mods.ErrorHandler/Patches/LoadErrorPatch.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using HarmonyLib;
+using Microsoft.Xna.Framework.Content;
using StardewModdingAPI.Framework.Exceptions;
using StardewModdingAPI.Framework.Patching;
using StardewValley;
@@ -82,7 +83,7 @@ namespace StardewModdingAPI.Mods.ErrorHandler.Patches
{
BluePrint _ = new BluePrint(building.buildingType.Value);
}
- catch (SContentLoadException)
+ catch (ContentLoadException)
{
LoadErrorPatch.Monitor.Log($"Removed invalid building type '{building.buildingType.Value}' in {location.Name} ({building.tileX}, {building.tileY}) to avoid a crash when loading save '{Constants.SaveFolderName}'. (Did you remove a custom building mod?)", LogLevel.Warn);
location.buildings.Remove(building);