From a93f1e20423cce790ece3fab769546815dfc2f3a Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 12 Mar 2017 18:38:01 -0400 Subject: add several incompatibility finders for SMAPI 1.9 and SDV 1.2 (#247) --- src/StardewModdingAPI/Constants.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/StardewModdingAPI') diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index 4c1c7a8e..d86a065b 100644 --- a/src/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs @@ -141,13 +141,20 @@ namespace StardewModdingAPI { return new IInstructionFinder[] { - // changes in Stardew Valley 1.2 - new GenericFieldFinder("Game1", "borderFont", isStatic: true), - new GenericFieldFinder("Game1", "smoothFont", isStatic: true), + // changes in Stardew Valley 1.2 (that don't have rewriters) + new GenericFieldFinder("StardewValley.Game1", "borderFont", isStatic: true), + new GenericFieldFinder("StardewValley.Game1", "smoothFont", isStatic: true), + new GenericFieldFinder("StardewValley.Item", "set_Name", isStatic: false), // APIs removed in SMAPI 1.9 + new GenericTypeFinder("StardewModdingAPI.Entities.SPlayer"), new GenericTypeFinder("StardewModdingAPI.Extensions"), - new GenericTypeFinder("StardewModdingAPI.Inheritance.SGame") + new GenericTypeFinder("StardewModdingAPI.Inheritance.ItemStackChange"), + new GenericTypeFinder("StardewModdingAPI.Inheritance.SGame"), + new GenericTypeFinder("StardewModdingAPI.Inheritance.SObject"), + new GenericTypeFinder("StardewModdingAPI.LogWriter"), + new GenericTypeFinder("StardewModdingAPI.Manifest"), + new GenericTypeFinder("StardewModdingAPI.Version") }; } -- cgit