From feff266d7c0ef079c74abb8846d75c27155d37c1 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Sun, 19 Feb 2023 17:36:57 +0530 Subject: [PATCH] Possibly also added mod loaded farm layout support to it. (not tested) --- stardew-access/Features/StaticTiles.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stardew-access/Features/StaticTiles.cs b/stardew-access/Features/StaticTiles.cs index 0c058e7..a7c6333 100644 --- a/stardew-access/Features/StaticTiles.cs +++ b/stardew-access/Features/StaticTiles.cs @@ -122,6 +122,8 @@ namespace stardew_access.Features locationName = locationName.Remove(locationName.LastIndexOf("_")); if (farmTypeIndex != Game1.whichFarm) continue; // Skip if current farm type does not matches + // if (Game1.whichModFarm != null) MainClass.DebugLog($"{farmType} {Game1.whichModFarm.MapName}"); + if (farmTypeIndex != 7 || Game1.whichModFarm == null || !farmType.ToLower().Equals(Game1.whichModFarm.MapName.ToLower())) continue; // Not checked but should work } if (!Game1.currentLocation.Name.ToLower().Equals(locationName.ToLower())) continue; @@ -192,7 +194,7 @@ namespace stardew_access.Features "combat" => 4, "fourcorners" => 5, "beach" => 6, - _ => 0, + _ => 7, }; } }