Fix inspections

This commit is contained in:
Dean Herbert 2024-02-26 15:45:29 +08:00
parent 4c744ccb69
commit 9a46e738bd
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ public void AttachToToolbox(ExpandingToolboxContainer toolboxContainer)
if (objTime >= editorClock.CurrentTime) if (objTime >= editorClock.CurrentTime)
continue; continue;
if (lastBefore == null || objTime > lastBefore?.StartTime) if (lastBefore == null || objTime > lastBefore.StartTime)
lastBefore = entry.Value.HitObject; lastBefore = entry.Value.HitObject;
} }
@ -148,7 +148,7 @@ public void AttachToToolbox(ExpandingToolboxContainer toolboxContainer)
if (objTime < editorClock.CurrentTime) if (objTime < editorClock.CurrentTime)
continue; continue;
if (firstAfter == null || objTime < firstAfter?.StartTime) if (firstAfter == null || objTime < firstAfter.StartTime)
firstAfter = entry.Value.HitObject; firstAfter = entry.Value.HitObject;
} }