diff --git a/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs b/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs index 5bd2e55d6..65740aaef 100644 --- a/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs +++ b/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs @@ -403,6 +403,15 @@ private static void AddRow(List row, Qua qua, float curre if (longNote != null) longNote.EndTime = (int)Math.Round(currentTime, MidpointRounding.AwayFromZero); break; + // Create mines for Mine notes + case StepFileChartNoteType.Mine: + qua.HitObjects.Add(new HitObjectInfo + { + StartTime = (int)Math.Truncate(currentTime), + Lane = i + 1, + Type = Enums.HitObjectType.Mine + }); + break; } } } diff --git a/Quaver.API/Maps/Parsers/Stepmania/StepFileChartMeasure.cs b/Quaver.API/Maps/Parsers/Stepmania/StepFileChartMeasure.cs index 14a95a2b1..bcac0e790 100644 --- a/Quaver.API/Maps/Parsers/Stepmania/StepFileChartMeasure.cs +++ b/Quaver.API/Maps/Parsers/Stepmania/StepFileChartMeasure.cs @@ -24,8 +24,16 @@ public static List ParseLine(string line) foreach (var character in line) { - int.TryParse(character.ToString(), out var value); - notes.Add((StepFileChartNoteType) value); + var value = character switch + { + '0' => StepFileChartNoteType.None, + '1' => StepFileChartNoteType.Normal, + '2' => StepFileChartNoteType.Head, + '3' => StepFileChartNoteType.Tail, + 'M' => StepFileChartNoteType.Mine, + _ => StepFileChartNoteType.None + }; + notes.Add(value); } return notes; diff --git a/Quaver.API/Maps/Parsers/Stepmania/StepFileChartNoteType.cs b/Quaver.API/Maps/Parsers/Stepmania/StepFileChartNoteType.cs index 51d834ed6..a2b6a12ee 100644 --- a/Quaver.API/Maps/Parsers/Stepmania/StepFileChartNoteType.cs +++ b/Quaver.API/Maps/Parsers/Stepmania/StepFileChartNoteType.cs @@ -6,5 +6,6 @@ public enum StepFileChartNoteType Normal, Head, Tail, + Mine, } } \ No newline at end of file