Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced For Loop Failure #62

Open
LexManos opened this issue Jun 9, 2020 · 0 comments
Open

Enhanced For Loop Failure #62

LexManos opened this issue Jun 9, 2020 · 0 comments

Comments

@LexManos
Copy link
Member

LexManos commented Jun 9, 2020

1.16-pre1 net\minecraft\client\gui\widget\list\OptionsRowList

   public Optional<Widget> func_238518_c_(double p_238518_1_, double p_238518_3_) {
      label21:
      for(OptionsRowList.Row optionsrowlist$row : this.func_230969_at__()) {
         Iterator iterator = optionsrowlist$row.field_214385_a.iterator();

         Widget widget;
         while(true) {
            if (!iterator.hasNext()) {
               continue label21;
            }

            widget = (Widget)iterator.next();
            if (widget.func_230990_b_(p_238518_1_, p_238518_3_)) {
               break;
            }
         }

         return Optional.of(widget);
      }

      return Optional.empty();
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant