summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-26 20:09:46 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-26 20:09:46 -0400
commit3530f6f67c33dde69ac11079a9f9a43518fbb2b4 (patch)
tree4e6a2af1298853193e624d318ad99569b0a0b020
parent5c253b7bae274c8509c90f8828f3f9f81653f250 (diff)
downloadSMAPI-3530f6f67c33dde69ac11079a9f9a43518fbb2b4.tar.gz
SMAPI-3530f6f67c33dde69ac11079a9f9a43518fbb2b4.tar.bz2
SMAPI-3530f6f67c33dde69ac11079a9f9a43518fbb2b4.zip
rewrite ItemStackChange references to correct namespace (#254)
-rw-r--r--src/StardewModdingAPI/Constants.cs5
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.config.json16
2 files changed, 3 insertions, 18 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index de0eab57..1f1b6a65 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -8,6 +8,7 @@ using StardewModdingAPI.AssemblyRewriters;
using StardewModdingAPI.AssemblyRewriters.Finders;
using StardewModdingAPI.AssemblyRewriters.Rewriters;
using StardewModdingAPI.AssemblyRewriters.Rewriters.Wrappers;
+using StardewModdingAPI.Events;
using StardewValley;
namespace StardewModdingAPI
@@ -153,7 +154,6 @@ namespace StardewModdingAPI
new TypeFinder("StardewModdingAPI.Advanced.IConfigFile"),
new TypeFinder("StardewModdingAPI.Entities.SPlayer"),
new TypeFinder("StardewModdingAPI.Extensions"),
- new TypeFinder("StardewModdingAPI.Inheritance.ItemStackChange"),
new TypeFinder("StardewModdingAPI.Inheritance.SGame"),
new TypeFinder("StardewModdingAPI.Inheritance.SObject"),
new TypeFinder("StardewModdingAPI.LogWriter"),
@@ -177,7 +177,8 @@ namespace StardewModdingAPI
new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.gameMode)),
new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.player)),
new FieldReplaceRewriter(typeof(Game1), "borderFont", nameof(Game1.smallFont)),
- new FieldReplaceRewriter(typeof(Game1), "smoothFont", nameof(Game1.smallFont))
+ new FieldReplaceRewriter(typeof(Game1), "smoothFont", nameof(Game1.smallFont)),
+ new TypeReferenceRewriter("StardewModdingAPI.Inheritance.ItemStackChange", typeof(ItemStackChange))
};
}
diff --git a/src/StardewModdingAPI/StardewModdingAPI.config.json b/src/StardewModdingAPI/StardewModdingAPI.config.json
index da6d3730..a254fdd0 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.config.json
+++ b/src/StardewModdingAPI/StardewModdingAPI.config.json
@@ -54,14 +54,6 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha
"Notes": "Uses obsolete StardewModdingAPI.Extensions."
},
{
- "Name": "Casks Anywhere",
- "ID": "CasksAnywhere",
- "Compatibility": "AssumeBroken",
- "UpperVersion": "1.1",
- "UpdateUrl": "http://www.nexusmods.com/stardewvalley/mods/878",
- "Notes": "Uses obsolete StardewModdingAPI.Inheritance.ItemStackChange."
- },
- {
"Name": "Chest Label System",
"ID": "SPDChestLabel",
"UpperVersion": "1.5",
@@ -183,14 +175,6 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha
"Notes": "Uses obsolete StardewModdingAPI.Extensions."
},
{
- "Name": "Reusable Wallpapers",
- "ID": "dae1b553-2e39-43e7-8400-c7c5c836134b",
- "UpperVersion": "1.5",
- "Compatibility": "AssumeBroken",
- "UpdateUrl": "http://www.nexusmods.com/stardewvalley/mods/356",
- "Notes": "Uses obsolete StardewModdingAPI.Inheritance.ItemStackChange."
- },
- {
"Name": "Save Anywhere",
"ID": "SaveAnywhere",
"UpperVersion": "2.0",