From ae01d8ae8390c7effec58375ca85e64df156454f Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sun, 26 Mar 2023 20:57:21 +0200 Subject: [PATCH] Fixed needsVoices not working when on old charts --- source/funkin/chart/BaseGameParser.hx | 2 +- source/funkin/chart/Chart.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/chart/BaseGameParser.hx b/source/funkin/chart/BaseGameParser.hx index 8d01a321..fcee81e3 100644 --- a/source/funkin/chart/BaseGameParser.hx +++ b/source/funkin/chart/BaseGameParser.hx @@ -38,6 +38,7 @@ class BaseGameParser { } result.meta.bpm = data.bpm; + result.meta.needsVoices = data.needsVoices.getDefault(true); var camFocusedBF:Bool = false; var beatsPerMesure:Float = data.beatsPerMesure.getDefault(4); @@ -76,7 +77,6 @@ class BaseGameParser { daNoteType = Chart.addNoteType(result, data.noteTypes[daNoteType-1]); } - result.strumLines[gottaHitNote ? 1 : 0].notes.push({ time: daStrumTime, id: daNoteData % 4, diff --git a/source/funkin/chart/Chart.hx b/source/funkin/chart/Chart.hx index a7f9f7c5..4a5c9e68 100644 --- a/source/funkin/chart/Chart.hx +++ b/source/funkin/chart/Chart.hx @@ -154,7 +154,7 @@ class Chart { var filteredChart = filterChartForSaving(chart, saveSettings.saveMetaInChart); var meta = filteredChart.meta; - + // idk how null reacts to it so better be sure #if sys