summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-15 13:33:22 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-15 13:33:22 -0500
commit39341d772e99492f239ad8aff09cca8760ff5b83 (patch)
tree411edbf7104abf0c6386ae412fee935c12d952b1 /src/SMAPI/Framework/SCore.cs
parent5f620e14fa331b0721bd4044011363477dc79ef5 (diff)
downloadSMAPI-39341d772e99492f239ad8aff09cca8760ff5b83.tar.gz
SMAPI-39341d772e99492f239ad8aff09cca8760ff5b83.tar.bz2
SMAPI-39341d772e99492f239ad8aff09cca8760ff5b83.zip
prevent invalid items from crashing the game
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r--src/SMAPI/Framework/SCore.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 3bc0aca4..679838ba 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -184,7 +184,8 @@ namespace StardewModdingAPI.Framework
// apply game patches
new GamePatcher(this.Monitor).Apply(
- new DialogueErrorPatch(this.MonitorForGame, this.Reflection)
+ new DialogueErrorPatch(this.MonitorForGame, this.Reflection),
+ new ObjectErrorPatch()
);
}