From 3530f6f67c33dde69ac11079a9f9a43518fbb2b4 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 26 Mar 2017 20:09:46 -0400 Subject: rewrite ItemStackChange references to correct namespace (#254) --- src/StardewModdingAPI/Constants.cs | 5 +++-- src/StardewModdingAPI/StardewModdingAPI.config.json | 16 ---------------- 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 @@ -53,14 +53,6 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha "UnofficialUpdateUrl": "http://community.playstarbound.com/threads/125031", "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", @@ -182,14 +174,6 @@ This file contains advanced configuration for SMAPI. You generally shouldn't cha "UpdateUrl": "http://www.nexusmods.com/stardewvalley/mods/572", "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", -- cgit