summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-20 22:35:02 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-20 22:35:02 -0500
commit93f00b115e1d8bbd5745c0d1b4416f91550f2d2b (patch)
tree3757525fe9a2dc789f00b36cb9eff866a3d11b8b
parent1e8a07e333fb38242bb7a9dd2ada588c6c4b8dce (diff)
downloadSMAPI-93f00b115e1d8bbd5745c0d1b4416f91550f2d2b.tar.gz
SMAPI-93f00b115e1d8bbd5745c0d1b4416f91550f2d2b.tar.bz2
SMAPI-93f00b115e1d8bbd5745c0d1b4416f91550f2d2b.zip
add mod rewriters for SDV 1.5
-rw-r--r--src/SMAPI/Metadata/InstructionMetadata.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs
index 09a199f9..2c1e14ce 100644
--- a/src/SMAPI/Metadata/InstructionMetadata.cs
+++ b/src/SMAPI/Metadata/InstructionMetadata.cs
@@ -6,6 +6,7 @@ using StardewModdingAPI.Framework.ModLoading.Finders;
using StardewModdingAPI.Framework.ModLoading.RewriteFacades;
using StardewModdingAPI.Framework.ModLoading.Rewriters;
using StardewValley;
+using StardewValley.Locations;
namespace StardewModdingAPI.Metadata
{
@@ -35,6 +36,11 @@ namespace StardewModdingAPI.Metadata
if (platformChanged)
yield return new MethodParentRewriter(typeof(SpriteBatch), typeof(SpriteBatchFacade));
+ // 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));
+
// heuristic rewrites
yield return new HeuristicFieldRewriter(this.ValidateReferencesToAssemblies);
yield return new HeuristicMethodRewriter(this.ValidateReferencesToAssemblies);