diff --git a/EdgeTool/Core/Level/Level.cs b/EdgeTool/Core/Level/Level.cs index 9e6f1e9..d44136c 100644 --- a/EdgeTool/Core/Level/Level.cs +++ b/EdgeTool/Core/Level/Level.cs @@ -448,12 +448,12 @@ public void Write(BinaryWriter writer) } public XElement GetXElement() { - var element = new XElement("Level", new XAttribute("ID", ID), new XAttribute("Size", Size), - new XAttribute("SpawnPoint", SpawnPoint), - new XAttribute("ExitPoint", ExitPoint)); + var element = new XElement("Level", new XAttribute("ID", ID), new XAttribute("Size", Size)); element.SetAttributeValueWithDefault("Name", Name, string.Empty); element.SetAttributeValueWithDefault("TimeThresholds", $"{SPlusTime},{STime},{ATime},{BTime},{CTime}", "1,2,3,4,5"); + element.SetAttributeValue("SpawnPoint", SpawnPoint); + element.SetAttributeValue("ExitPoint", ExitPoint); element.SetAttributeValueWithDefault("Theme", Theme); element.SetAttributeValueWithDefault("MusicJava", MusicJava); element.SetAttributeValueWithDefault("Music", Music, 6);