From 41474738c736eb2290cbb2c864291152ab496b94 Mon Sep 17 00:00:00 2001 From: Frakits <90983918+Frakits@users.noreply.github.com> Date: Thu, 7 Aug 2025 21:07:33 +0300 Subject: [PATCH] Update Chart.hx --- source/funkin/backend/chart/Chart.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/chart/Chart.hx b/source/funkin/backend/chart/Chart.hx index 25906921..a9637e6a 100644 --- a/source/funkin/backend/chart/Chart.hx +++ b/source/funkin/backend/chart/Chart.hx @@ -278,7 +278,7 @@ class Chart { CoolUtil.safeSaveFile(chartPath, Json.stringify(filteredChart, null, saveSettings.prettyPrint == true ? Flags.JSON_PRETTY_PRINT : null)); - if (saveSettings.overrideExistingMeta == true || !FileSystem.exists(metaPath)) + if (meta != null && (saveSettings.overrideExistingMeta || !FileSystem.exists(metaPath))) CoolUtil.safeSaveFile(metaPath, makeMetaSaveable(meta)); #end return filteredChart; @@ -331,4 +331,4 @@ typedef ChartSaveSettings = { var ?saveGlobalEvents:Bool; var ?prettyPrint:Bool; var ?folder:String; -} \ No newline at end of file +}