From 1fe44fa3686b33f91b99efdb00070e4c59fdee45 Mon Sep 17 00:00:00 2001
From: lemz <ismael.amjad07@gmail.com>
Date: Sat, 29 Jun 2024 15:33:41 +0200
Subject: [PATCH] add from

---
 source/funkin/play/notes/notekind/NoteKind.hx                  | 2 +-
 .../ui/debug/charting/toolboxes/ChartEditorNoteDataToolbox.hx  | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/source/funkin/play/notes/notekind/NoteKind.hx b/source/funkin/play/notes/notekind/NoteKind.hx
index 89c175e54..c1c6e815a 100644
--- a/source/funkin/play/notes/notekind/NoteKind.hx
+++ b/source/funkin/play/notes/notekind/NoteKind.hx
@@ -73,7 +73,7 @@ class NoteKind implements INoteScriptedClass
  * Abstract for setting the type of the `NoteKindParam`
  * This was supposed to be an enum but polymod kept being annoying
  */
-abstract NoteKindParamType(String) to String
+abstract NoteKindParamType(String) from String to String
 {
   public static final STRING:String = 'String';
 
diff --git a/source/funkin/ui/debug/charting/toolboxes/ChartEditorNoteDataToolbox.hx b/source/funkin/ui/debug/charting/toolboxes/ChartEditorNoteDataToolbox.hx
index 264e62c5a..ea46cf72a 100644
--- a/source/funkin/ui/debug/charting/toolboxes/ChartEditorNoteDataToolbox.hx
+++ b/source/funkin/ui/debug/charting/toolboxes/ChartEditorNoteDataToolbox.hx
@@ -186,8 +186,7 @@ class ChartEditorNoteDataToolbox extends ChartEditorBaseToolbox
 
       var paramComponent:Component = null;
 
-      final paramType:String = param.type;
-      switch (paramType)
+      switch (param.type)
       {
         case NoteKindParamType.INT | NoteKindParamType.FLOAT:
           var paramStepper:NumberStepper = new NumberStepper();