summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/InstructionMetadata.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-08-24 20:11:56 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-08-24 20:11:56 -0400
commit94b8262692d2452e77d57fa22046dded231cdb0a (patch)
tree7a65c992db59db0c0797799195ff1509c366ac20 /src/SMAPI/Metadata/InstructionMetadata.cs
parent046deb2d56b6d4665280cc5478d9e683ec1d777d (diff)
downloadSMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.tar.gz
SMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.tar.bz2
SMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.zip
add heuristic field-to-property rewriter
Diffstat (limited to 'src/SMAPI/Metadata/InstructionMetadata.cs')
-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 79d7a7a8..fca809f8 100644
--- a/src/SMAPI/Metadata/InstructionMetadata.cs
+++ b/src/SMAPI/Metadata/InstructionMetadata.cs
@@ -31,6 +31,9 @@ namespace StardewModdingAPI.Metadata
/****
** rewrite CIL to fix incompatible code
****/
+ // generic rewrites
+ yield return new FieldToPropertyRewriter(this.ValidateReferencesToAssemblies);
+
// rewrite for crossplatform compatibility
if (platformChanged)
yield return new MethodParentRewriter(typeof(SpriteBatch), typeof(SpriteBatchFacade));