diff --git a/GeneralMods/MuseumRearranger/Framework/NewMuseumMenu.cs b/GeneralMods/MuseumRearranger/Framework/NewMuseumMenu.cs index f18c3185..dcef035a 100644 --- a/GeneralMods/MuseumRearranger/Framework/NewMuseumMenu.cs +++ b/GeneralMods/MuseumRearranger/Framework/NewMuseumMenu.cs @@ -17,7 +17,7 @@ namespace Omegasis.MuseumRearranger.Framework private bool ShowInventory = true; /// A reference to a private field for use in the overridden draw code. - private readonly IPrivateField HoldingMuseumPiece; + private readonly IReflectedField HoldingMuseumPiece; /********* @@ -27,7 +27,7 @@ namespace Omegasis.MuseumRearranger.Framework /// Simplifies access to private game code. public NewMuseumMenu(IReflectionHelper reflection) { - this.HoldingMuseumPiece = reflection.GetPrivateField(this, "holdingMuseumPiece"); + this.HoldingMuseumPiece = reflection.GetField(this, "holdingMuseumPiece"); } /// Toggle the inventory box. diff --git a/GeneralMods/MuseumRearranger/manifest.json b/GeneralMods/MuseumRearranger/manifest.json index a9d86bf1..f6f9d609 100644 --- a/GeneralMods/MuseumRearranger/manifest.json +++ b/GeneralMods/MuseumRearranger/manifest.json @@ -5,6 +5,6 @@ "Description": "Lets you rearrange the museum without needing to donate something.", "UniqueID": "Omegasis.MuseumRearranger", "EntryDll": "MuseumRearranger.dll", - "MinimumApiVersion": "2.0", + "MinimumApiVersion": "2.3", "UpdateKeys": [ "Nexus:428" ] } diff --git a/GeneralMods/SaveAnywhere/SaveAnywhere.cs b/GeneralMods/SaveAnywhere/SaveAnywhere.cs index 74e895f5..649c90d0 100644 --- a/GeneralMods/SaveAnywhere/SaveAnywhere.cs +++ b/GeneralMods/SaveAnywhere/SaveAnywhere.cs @@ -215,7 +215,7 @@ namespace Omegasis.SaveAnywhere int endFacingDir = Convert.ToInt32(fields[4]); schedulePathDescription = this.Helper.Reflection - .GetPrivateMethod(npc, "pathfindToNextScheduleLocation") + .GetMethod(npc, "pathfindToNextScheduleLocation") .Invoke(npc.currentLocation.name, npc.getTileX(), npc.getTileY(), endMap, x, y, endFacingDir, null, null); index++; } @@ -274,14 +274,14 @@ namespace Omegasis.SaveAnywhere if ((npc.name.Equals("Penny") && (dayName.Equals("Tue") || dayName.Equals("Wed") || dayName.Equals("Fri"))) || (npc.name.Equals("Maru") && (dayName.Equals("Tue") || dayName.Equals("Thu"))) || (npc.name.Equals("Harvey") && (dayName.Equals("Tue") || dayName.Equals("Thu")))) { this.Helper.Reflection - .GetPrivateField(npc, "nameofTodaysSchedule") + .GetField(npc, "nameofTodaysSchedule") .SetValue("marriageJob"); return "marriageJob"; } if (!Game1.isRaining && schedule.ContainsKey("marriage_" + Game1.shortDayNameFromDayOfSeason(Game1.dayOfMonth))) { this.Helper.Reflection - .GetPrivateField(npc, "nameofTodaysSchedule") + .GetField(npc, "nameofTodaysSchedule") .SetValue("marriage_" + Game1.shortDayNameFromDayOfSeason(Game1.dayOfMonth)); return "marriage_" + Game1.shortDayNameFromDayOfSeason(Game1.dayOfMonth); } diff --git a/GeneralMods/SaveAnywhere/manifest.json b/GeneralMods/SaveAnywhere/manifest.json index ae7adf7c..6e5cd1f0 100644 --- a/GeneralMods/SaveAnywhere/manifest.json +++ b/GeneralMods/SaveAnywhere/manifest.json @@ -5,6 +5,6 @@ "Description": "Lets you save almost anywhere.", "UniqueID": "Omegasis.SaveAnywhere", "EntryDll": "SaveAnywhere.dll", - "MinimumApiVersion": "2.0", + "MinimumApiVersion": "2.3", "UpdateKeys": [ "Nexus:444" ] } diff --git a/GeneralMods/StardustCore/ModInfo/MetaData.cs b/GeneralMods/StardustCore/ModInfo/MetaData.cs index c903d436..81fc6ec4 100644 --- a/GeneralMods/StardustCore/ModInfo/MetaData.cs +++ b/GeneralMods/StardustCore/ModInfo/MetaData.cs @@ -55,7 +55,7 @@ namespace StardustCore.ModInfo { // if (Game1.activeClickableMenu.allClickableComponents == null) return; try { - List pages = ModCore.ModHelper.Reflection.GetPrivateValue>(Game1.activeClickableMenu, "pages"); + List pages = ModCore.ModHelper.Reflection.GetField>(Game1.activeClickableMenu, "pages").GetValue(); if (Game1.activeClickableMenu is GameMenu) { StardewValley.Menus.IClickableMenu s = pages[(Game1.activeClickableMenu as GameMenu).currentTab]; diff --git a/GeneralMods/StardustCore/manifest.json b/GeneralMods/StardustCore/manifest.json index 6212b6da..7337f01c 100644 --- a/GeneralMods/StardustCore/manifest.json +++ b/GeneralMods/StardustCore/manifest.json @@ -5,6 +5,6 @@ "Description": "A core mod that allows for other mods to be run.", "UniqueID": "Omegasis.StardustCore", "EntryDll": "StardustCore.dll", - "MinimumApiVersion": "2.0", + "MinimumApiVersion": "2.3", "UpdateKeys": [] }