Skip to content

Commit

Permalink
Update farm invalidation to use mapPath instead of map.assetPath
Browse files Browse the repository at this point in the history
This should fix custom farms being inconsistent if they had incorrect metadata in their tmx/tbin
  • Loading branch information
SinZ163 committed Sep 2, 2024
1 parent 1836a3c commit 851356e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SinZational Several Spouse Spots/ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void RecalculateSpousePatioAllocations()
SpousePatioAllocations[spouse] = patio;
}
// Force Farm to be reloaded
Monitor.Log("Invalidating Farm: " + Game1.getFarm().Map.assetPath);
Helper.GameContent.InvalidateCache(Game1.getFarm().Map.assetPath);
Monitor.Log("Invalidating Farm: " + Game1.getFarm().mapPath.Value);
Helper.GameContent.InvalidateCache(Game1.getFarm().mapPath.Value);
}

public void ApplyMapModifications()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PropertyGroup>
<Name>SinZational Several Spouse Spots</Name>
<Authors>SinZ</Authors>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<Description>A mod that implements multiplayer spouse patios</Description>
<UniqueId>SinZ.SeveralSpouseSpots</UniqueId>
<MinimumApiVersion>4.0</MinimumApiVersion>
Expand Down
2 changes: 1 addition & 1 deletion SinZational Shared Spaces/SinZational Shared Spaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PropertyGroup>
<Name>SinZational Shared Spaces</Name>
<Authors>SinZ</Authors>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<Description>A mod that implements multiplayer stacked cabins</Description>
<UniqueId>SinZ.SharedSpaces</UniqueId>
<MinimumApiVersion>4.0</MinimumApiVersion>
Expand Down

0 comments on commit 851356e

Please sign in to comment.