summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-25 14:06:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-25 14:06:36 -0400
commit267e2469da290cbdb93bd58cea0272de403bbdab (patch)
tree093885ee7fd5a7ba8ce4606840296d801fb29e85 /src/StardewModdingAPI
parent4d48bdfe7c3806ec1995cd499ca9382ace2d8a53 (diff)
downloadSMAPI-267e2469da290cbdb93bd58cea0272de403bbdab.tar.gz
SMAPI-267e2469da290cbdb93bd58cea0272de403bbdab.tar.bz2
SMAPI-267e2469da290cbdb93bd58cea0272de403bbdab.zip
rewrite removed font references for compatibility
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Constants.cs6
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.config.json16
2 files changed, 3 insertions, 19 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index 5fa25014..9a7fba84 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -143,8 +143,6 @@ namespace StardewModdingAPI
return new IInstructionFinder[]
{
// changes in Stardew Valley 1.2 (that don't have rewriters)
- new FieldFinder("StardewValley.Game1", "borderFont", isStatic: true),
- new FieldFinder("StardewValley.Game1", "smoothFont", isStatic: true),
new FieldFinder("StardewValley.Item", "set_Name", isStatic: false),
// APIs removed in SMAPI 1.9
@@ -178,7 +176,9 @@ namespace StardewModdingAPI
// Stardew Valley 1.2
new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.activeClickableMenu)),
new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.gameMode)),
- new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.player))
+ new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.player)),
+ new FieldReplaceRewriter(typeof(Game1), "borderFont", nameof(Game1.smallFont)),
+ new FieldReplaceRewriter(typeof(Game1), "smoothFont", nameof(Game1.smallFont))
};
}
diff --git a/src/StardewModdingAPI/StardewModdingAPI.config.json b/src/StardewModdingAPI/StardewModdingAPI.config.json
index 64b4fd53..da6d3730 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.config.json
+++ b/src/StardewModdingAPI/StardewModdingAPI.config.json
@@ -94,22 +94,6 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha
"Notes": "Crashes with 'Method not found: Void StardewValley.Item.set_Name(System.String)'."
},
{
- "Name": "CJB Cheats Menu",
- "ID": "CJBCheatsMenu",
- "UpperVersion": "1.13",
- "Compatibility": "AssumeBroken",
- "UpdateUrl": "http://www.nexusmods.com/stardewvalley/mods/4",
- "Notes": "Uses removed Game1.borderFont."
- },
- {
- "Name": "CJB Item Spawner",
- "ID": "CJBItemSpawner",
- "UpperVersion": "1.6",
- "Compatibility": "AssumeBroken",
- "UpdateUrl": "http://www.nexusmods.com/stardewvalley/mods/93",
- "Notes": "Uses removed Game1.borderFont."
- },
- {
"Name": "Cooking Skill",
"ID": "CookingSkill",
"UpperVersion": "1.0.3",