From a9b6b0ffa799cccbb1ad473357a8f503731da517 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 13 Mar 2018 19:43:15 -0400 Subject: don't rewrite for field to property changes in Stardew Valley 1.3 (#456) The fields are still available (even if they changed return type). That will cause unnecessary rewrites for some mods after they're updated, so they can't be debugged into. --- src/SMAPI/Metadata/InstructionMetadata.cs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index 603a43cb..4960a458 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -56,13 +56,6 @@ namespace StardewModdingAPI.Metadata // rewrite for Stardew Valley 1.3 #if STARDEW_VALLEY_1_3 new StaticFieldToConstantRewriter(typeof(Game1), "tileSize", Game1.tileSize), - new FieldToPropertyRewriter(typeof(Character), nameof(Character.name), nameof(Character.Name)), - new FieldToPropertyRewriter(typeof(GameLocation), nameof(GameLocation.isFarm), nameof(GameLocation.IsFarm)), - new FieldToPropertyRewriter(typeof(GameLocation), nameof(GameLocation.isOutdoors), nameof(GameLocation.isOutdoors)), - new FieldToPropertyRewriter(typeof(GameLocation), nameof(GameLocation.name), nameof(GameLocation.Name)), - new FieldToPropertyRewriter(typeof(Item), nameof(Item.category), nameof(Item.Category)), - new FieldToPropertyRewriter(typeof(SObject), nameof(SObject.quality), nameof(SObject.Quality)), - new FieldToPropertyRewriter(typeof(SObject), nameof(SObject.stack), nameof(SObject.Stack)), #endif /**** -- cgit