Skip to content

Commit

Permalink
Fix impassable tiles adjacent to settlements not previewable
Browse files Browse the repository at this point in the history
  • Loading branch information
m00nl1ght-dev committed Oct 1, 2023
1 parent 1a7d61e commit d0566d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MapPreviewMod/WorldInterfaceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal static void Update(WorldSelector selector)

public static bool ShouldPreviewForTile(Tile tile, int tileId, MapParent mapParent)
{
if (tile.biome.impassable || tile.hilliness == Hilliness.Impassable)
if (tile.biome.impassable || Find.World.Impassable(tileId))
{
if (!TileFinder.IsValidTileForNewSettlement(tileId)) return false;
}
Expand Down

0 comments on commit d0566d2

Please sign in to comment.