From 8a728ad28a8423add1334eab1f51cac6e65d5f4f Mon Sep 17 00:00:00 2001 From: Clansty Date: Fri, 29 Nov 2024 05:43:41 +0800 Subject: [PATCH] [F] JudgeAccuracyInfo crashes demo --- AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs b/AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs index 539184b4..439aa6da 100644 --- a/AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs +++ b/AquaMai/AquaMai.Mods/UX/JudgeAccuracyInfo.cs @@ -6,6 +6,7 @@ using System.Reflection; using AquaMai.Config.Attributes; using HarmonyLib; +using MAI2.Util; using Manager; using Monitor; using Monitor.Result; @@ -123,6 +124,9 @@ private static void SlideRootJudgePatch( ) { var monitor = __instance.MonitorId; + var userData = Singleton.Instance.GetUserData(monitor); + if(!userData.IsEntry) return; + if (!__result || EntryList[monitor].NoteIndices.Contains(___NoteIndex)) return; EntryList[monitor].NoteIndices.Add(___NoteIndex);