Skip to content

Commit 87b75fe

Browse files
committed
EditorStatusDisplay: should skip the loop if it's an editor
1 parent e970ef2 commit 87b75fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor-extra/src/main/java/io/github/projectunified/minigamecore/editor/extra/status/EditorStatusDisplay.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public T display(Editor<?> editor) {
104104
}
105105

106106
if (value instanceof Editor<?>) {
107-
Editor<?> subEditor = (Editor<?>) value;
108-
deque.addFirst(new Entry(level, entry.key(), subEditor.status(), false));
107+
deque.addFirst(new Entry(level, entry.key(), ((Editor<?>) value).status(), false));
108+
continue;
109109
}
110110

111111
S section = newSection(builder, level);

0 commit comments

Comments
 (0)