summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-10 23:24:01 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-10 23:24:01 -0500
commitd96cec88e461806c4676c9280455da19f5c7af24 (patch)
treedf74266e1a98dacd230926a663231adc004bf52b /src/SMAPI.Mods.ConsoleCommands/Framework
parent2216e37726874af6ab164dbbaef454eb0f2218d0 (diff)
downloadSMAPI-d96cec88e461806c4676c9280455da19f5c7af24.tar.gz
SMAPI-d96cec88e461806c4676c9280455da19f5c7af24.tar.bz2
SMAPI-d96cec88e461806c4676c9280455da19f5c7af24.zip
fix set_farm_type not updating warps
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/Framework')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetFarmTypeCommand.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetFarmTypeCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetFarmTypeCommand.cs
index 6b3b27cd..6fb399ae 100644
--- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetFarmTypeCommand.cs
+++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetFarmTypeCommand.cs
@@ -131,6 +131,7 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.Player
Farm farm = Game1.getFarm();
farm.mapPath.Value = $@"Maps\{Farm.getMapNameFromTypeInt(Game1.whichFarm)}";
farm.reloadMap();
+ farm.updateWarps();
// clear spouse area cache to avoid errors
FieldInfo cacheField = farm.GetType().GetField("_baseSpouseAreaTiles", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);