summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetDataForMap.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-17 22:12:17 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-17 22:12:17 -0400
commita8a4d314dff1f80970090e9d364f36e787df73d6 (patch)
treea6e37afe98d1df136a99fae69273234b79a73daa /src/SMAPI/Framework/Content/AssetDataForMap.cs
parentb25e30a896cd7ed65d02db7d8639cd28a11981f0 (diff)
downloadSMAPI-a8a4d314dff1f80970090e9d364f36e787df73d6.tar.gz
SMAPI-a8a4d314dff1f80970090e9d364f36e787df73d6.tar.bz2
SMAPI-a8a4d314dff1f80970090e9d364f36e787df73d6.zip
simplify ExtendMap usage
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetDataForMap.cs')
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForMap.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForMap.cs b/src/SMAPI/Framework/Content/AssetDataForMap.cs
index 133dcc6c..8674461e 100644
--- a/src/SMAPI/Framework/Content/AssetDataForMap.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForMap.cs
@@ -151,9 +151,10 @@ namespace StardewModdingAPI.Framework.Content
}
/// <inheritdoc />
- public bool ExtendMap(Map map, int minWidth, int minHeight)
+ public bool ExtendMap(int minWidth = 0, int minHeight = 0)
{
bool resized = false;
+ Map map = this.Data;
// resize layers
foreach (Layer layer in map.Layers)