mirror of
https://github.com/tribufu/ServerGridEditor
synced 2026-05-06 15:17:35 +00:00
Fix for new maps always saving as map extensions even if field is blank
This commit is contained in:
parent
682c568a4b
commit
e866207ebd
2 changed files with 3 additions and 1 deletions
|
|
@ -1129,7 +1129,8 @@ namespace ServerGridEditor
|
|||
Dictionary<string, Island> originalIslands = new Dictionary<string, Island>();
|
||||
|
||||
foreach (Island island in allIslands)
|
||||
if (island.modDir != null)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(island.modDir))
|
||||
{
|
||||
//This is a mod island group it to be saved
|
||||
Dictionary<string, Island> modIslandsDict = null;
|
||||
|
|
@ -1145,6 +1146,7 @@ namespace ServerGridEditor
|
|||
{
|
||||
originalIslands.Add(island.name, island);
|
||||
}
|
||||
}
|
||||
|
||||
//Serialize Main island file
|
||||
string json = JsonConvert.SerializeObject(originalIslands, Formatting.Indented);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue