From 0040d93950d89f20acc09ae43fb9c248d8028748 Mon Sep 17 00:00:00 2001 From: NyxieFemboy Date: Tue, 10 Dec 2024 19:13:28 -0500 Subject: [PATCH] Fixes to Negative note sustain lengths in the charter --- source/funkin/editors/charter/CharterNote.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/editors/charter/CharterNote.hx b/source/funkin/editors/charter/CharterNote.hx index 1d1308420..d039962e0 100644 --- a/source/funkin/editors/charter/CharterNote.hx +++ b/source/funkin/editors/charter/CharterNote.hx @@ -76,7 +76,7 @@ class CharterNote extends UISprite implements ICharterSelectable { public function updatePos(step:Float, id:Int, susLength:Float = 0, ?type:Int = 0, ?strumLine:CharterStrumline = null) { this.step = step; this.id = id; - this.susLength = susLength; + this.susLength = Math.max(susLength, 0); this.type = type; if (strumLine != null) this.strumLine = strumLine;