From f7ad889d140841b118e367b18faa35eb0f2fe2fc Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 16 Feb 2020 12:50:04 -0500 Subject: [PATCH] Fix importing KCL for mario odyssey without a preset used --- File_Format_Library/FileFormats/Collision/KCL.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/File_Format_Library/FileFormats/Collision/KCL.cs b/File_Format_Library/FileFormats/Collision/KCL.cs index e49bf62c..86954ccf 100644 --- a/File_Format_Library/FileFormats/Collision/KCL.cs +++ b/File_Format_Library/FileFormats/Collision/KCL.cs @@ -234,12 +234,14 @@ namespace FirstPlugin writer.Write(data); } - if (AttributeByml != null) - SaveAttributeByml(); + SaveAttributeByml(); } private void SaveAttributeByml(bool UpdateArchive = false) { + if (AttributeByml == null || AttributeByml.RootNode == null) + return; + string byml = $"{Path.GetFileNameWithoutExtension(Text)}Attribute.byml"; if (IFileInfo.ArchiveParent != null) {