Skip to content

Commit

Permalink
[F] JudgeAccuracyInfo crashes demo
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 28, 2024
1 parent c42f17c commit 8a728ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Reflection;
using AquaMai.Config.Attributes;
using HarmonyLib;
using MAI2.Util;
using Manager;
using Monitor;
using Monitor.Result;
Expand Down Expand Up @@ -123,6 +124,9 @@ private static void SlideRootJudgePatch(
)
{
var monitor = __instance.MonitorId;
var userData = Singleton<UserDataManager>.Instance.GetUserData(monitor);
if(!userData.IsEntry) return;

if (!__result || EntryList[monitor].NoteIndices.Contains(___NoteIndex)) return;

EntryList[monitor].NoteIndices.Add(___NoteIndex);
Expand Down

0 comments on commit 8a728ad

Please sign in to comment.