summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-03 02:39:20 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-04 23:49:06 -0500
commit3744e2f1e5505c9d15fb3bc985ad147a33621048 (patch)
treecf6c6accf9024b553a1772658720f909c6c6b25f /src/SMAPI/Metadata
parenta2a0469cd024e2fd4b35503db152ba1a6df712ec (diff)
downloadSMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.tar.gz
SMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.tar.bz2
SMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.zip
add SMAPI 3.0 compatibility strict mode (#606)
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r--src/SMAPI/Metadata/InstructionMetadata.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs
index ff8d54e3..c4ddf807 100644
--- a/src/SMAPI/Metadata/InstructionMetadata.cs
+++ b/src/SMAPI/Metadata/InstructionMetadata.cs
@@ -52,7 +52,10 @@ namespace StardewModdingAPI.Metadata
new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.serializer), InstructionHandleResult.DetectedSaveSerialiser),
new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.farmerSerializer), InstructionHandleResult.DetectedSaveSerialiser),
new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.locationSerializer), InstructionHandleResult.DetectedSaveSerialiser),
+ new TypeFinder(typeof(ISpecialisedEvents).FullName, InstructionHandleResult.DetectedUnvalidatedUpdateTick),
+#if !SMAPI_3_0_STRICT
new EventFinder(typeof(SpecialisedEvents).FullName, nameof(SpecialisedEvents.UnvalidatedUpdateTick), InstructionHandleResult.DetectedUnvalidatedUpdateTick),
+#endif
/****
** detect paranoid issues