summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-16 18:01:19 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-16 18:01:19 -0500
commit1b9ff9cd101621cacc246fc2b7d936f964ae4b3f (patch)
treeff742b2a12270b57c28e8ddecdc5322c64f6c2ce /src/SMAPI/Metadata
parent8a2618d812e4e2f36161907af5af5c484eb37abf (diff)
parentad0e6b315dc7b4e616dcdf6c090cd54a2f3b7499 (diff)
downloadSMAPI-1b9ff9cd101621cacc246fc2b7d936f964ae4b3f.tar.gz
SMAPI-1b9ff9cd101621cacc246fc2b7d936f964ae4b3f.tar.bz2
SMAPI-1b9ff9cd101621cacc246fc2b7d936f964ae4b3f.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r--src/SMAPI/Metadata/InstructionMetadata.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs
index 232e54ce..367372b2 100644
--- a/src/SMAPI/Metadata/InstructionMetadata.cs
+++ b/src/SMAPI/Metadata/InstructionMetadata.cs
@@ -37,9 +37,10 @@ namespace StardewModdingAPI.Metadata
if (rewriteMods)
{
// rewrite for Stardew Valley 1.5
- yield return new FieldReplaceRewriter(typeof(DecoratableLocation), "furniture", typeof(GameLocation), nameof(GameLocation.furniture));
- yield return new FieldReplaceRewriter(typeof(Farm), "resourceClumps", typeof(GameLocation), nameof(GameLocation.resourceClumps));
- yield return new FieldReplaceRewriter(typeof(MineShaft), "resourceClumps", typeof(GameLocation), nameof(GameLocation.resourceClumps));
+ yield return new FieldReplaceRewriter()
+ .AddField(typeof(DecoratableLocation), "furniture", typeof(GameLocation), nameof(GameLocation.furniture))
+ .AddField(typeof(Farm), "resourceClumps", typeof(GameLocation), nameof(GameLocation.resourceClumps))
+ .AddField(typeof(MineShaft), "resourceClumps", typeof(GameLocation), nameof(GameLocation.resourceClumps));
// heuristic rewrites
yield return new HeuristicFieldRewriter(this.ValidateReferencesToAssemblies);
@@ -87,7 +88,7 @@ namespace StardewModdingAPI.Metadata
typeof(System.IO.DirectoryInfo).FullName,
typeof(System.IO.DriveInfo).FullName,
typeof(System.IO.FileSystemWatcher).FullName
- },
+ },
InstructionHandleResult.DetectedFilesystemAccess
);