From fffb1e59f49e43ed48314ac919b42d26eccadd95 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Mon, 30 Oct 2023 22:19:34 +0100 Subject: [PATCH] Fix compiling --- source/funkin/editors/charter/Charter.hx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index bcd46a93..d561d0ab 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -1456,11 +1456,11 @@ class CharterNoteTypeButton extends UIButton { textBox.suggestItems = suggestList; textBox.antialiasing = true; textBox.onChange = function(typer:String) { - if (!chart.noteTypes.contains(typer) && chart.noteTypes.contains(theType)) - chart.noteTypes[chart.noteTypes.indexOf(theType)] = typer; - else if (chart.noteTypes.contains(typer) && chart.noteTypes.contains(theType)) - chart.noteTypes.remove(theType); - else chart.noteTypes.push(typer); + if (!PlayState.SONG.noteTypes.contains(typer) && PlayState.SONG.noteTypes.contains(theType)) + PlayState.SONG.noteTypes[PlayState.SONG.noteTypes.indexOf(theType)] = typer; + else if (PlayState.SONG.noteTypes.contains(typer) && PlayState.SONG.noteTypes.contains(theType)) + PlayState.SONG.noteTypes.remove(theType); + else PlayState.SONG.noteTypes.push(typer); if (state.curNoteType == theType) state.curNoteType = typer; theType = typer; }