Small fix

This commit is contained in:
Ne_Eo
2024-11-15 14:31:41 +01:00
parent 625b03eee4
commit dd0648a8b2
+2 -2
View File
@@ -99,7 +99,7 @@ class Note extends FlxSprite
return __customNoteTypeExists[path] = Assets.exists(path);
}
public static var DEFAULT_NOTE_FIELDS:Array<String> = ["time", "id", "type", "sLen"];
static var DEFAULT_FIELDS:Array<String> = ["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;