From dd0648a8b2e824085bc6f34936687fc29623b853 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Fri, 15 Nov 2024 14:31:41 +0100 Subject: [PATCH] Small fix --- source/funkin/game/Note.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index f1dc7f88..6c2a92a0 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -99,7 +99,7 @@ class Note extends FlxSprite return __customNoteTypeExists[path] = Assets.exists(path); } - public static var DEFAULT_NOTE_FIELDS:Array = ["time", "id", "type", "sLen"]; + static var DEFAULT_FIELDS:Array = ["time", "id", "type", "sLen"]; public function new(strumLine:StrumLine, noteData:ChartNote, sustain:Bool = false, sustainLength:Float = 0, sustainOffset:Float = 0, ?prev:Note) { @@ -117,7 +117,7 @@ class Note extends FlxSprite this.isSustainNote = sustain; this.sustainLength = sustainLength; this.strumLine = strumLine; - for(field in Reflect.fields(noteData)) if(!DEFAULT_NOTE_FIELDS.contains(field)) + for(field in Reflect.fields(noteData)) if(!DEFAULT_FIELDS.contains(field)) this.extra.set(field, Reflect.field(noteData, field)); x += 50;