File tree 1 file changed +4
-7
lines changed
common/src/main/java/dev/ftb/mods/ftbquests/client/gui/quests
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -469,13 +469,10 @@ public boolean keyPressed(Key key) {
469
469
List <Chapter > visibleChapters = file .getVisibleChapters (file .selfTeamData );
470
470
471
471
if (key .is (GLFW .GLFW_KEY_TAB )) {
472
- if (selectedChapter != null && file .getVisibleChapters (file .selfTeamData ).size () > 1 ) {
473
-
474
- if (!visibleChapters .isEmpty ()) {
475
- selectChapter (visibleChapters .get (MathUtils .mod (visibleChapters .indexOf (selectedChapter ) + (isShiftKeyDown () ? -1 : 1 ), visibleChapters .size ())));
476
- selectedChapter .getAutofocus ().ifPresent (this ::scrollTo );
477
- }
478
- }
472
+ if (selectedChapter != null && visibleChapters .size () > 1 ) {
473
+ selectChapter (visibleChapters .get (MathUtils .mod (visibleChapters .indexOf (selectedChapter ) + (isShiftKeyDown () ? -1 : 1 ), visibleChapters .size ())));
474
+ selectedChapter .getAutofocus ().ifPresent (this ::scrollTo );
475
+ }
479
476
480
477
return true ;
481
478
}
You can’t perform that action at this time.
0 commit comments