diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-17 22:12:17 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-17 22:12:17 -0400 |
commit | a8a4d314dff1f80970090e9d364f36e787df73d6 (patch) | |
tree | a6e37afe98d1df136a99fae69273234b79a73daa /src/SMAPI/Framework/Content/AssetDataForMap.cs | |
parent | b25e30a896cd7ed65d02db7d8639cd28a11981f0 (diff) | |
download | SMAPI-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.cs | 3 |
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) |