Skip to content

Improper for loop promotion from while #67

@LexManos

Description

@LexManos

1.16-pre1 RealmsSelectWorldTemplate.func_224497_a

WorldTemplatePaginatedList worldtemplatepaginatedlist = p_224497_1_;
Either<WorldTemplatePaginatedList, String> either;
for(RealmsClient realmsclient = RealmsClient.func_224911_a(); worldtemplatepaginatedlist != null; worldtemplatepaginatedlist = RealmsSelectWorldTemplateScreen.this.field_230706_i_.func_213169_a(() -> {
   if (either.right().isPresent()) {
      ...
   } else {
      ...
   }
}).join()) {
   either = RealmsSelectWorldTemplateScreen.this.func_224509_a(worldtemplatepaginatedlist, realmsclient);
}
WorldTemplatePaginatedList worldtemplatepaginatedlist = p_224497_1_;
RealmsClient realmsclient = RealmsClient.func_224911_a();
while (worldtemplatepaginatedlist != null) {
   Either<WorldTemplatePaginatedList, String> either = RealmsSelectWorldTemplateScreen.this.func_224509_a(worldtemplatepaginatedlist, realmsclient);
   worldtemplatepaginatedlist = RealmsSelectWorldTemplateScreen.this.field_230706_i_.func_213169_a(() -> {
      if (either.right().isPresent()) {
         ...
      } else {
         ...
      }
   };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions