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

Some enchanced for loops are not enhanced. #16

Open
LexManos opened this issue Jul 27, 2018 · 0 comments
Open

Some enchanced for loops are not enhanced. #16

LexManos opened this issue Jul 27, 2018 · 0 comments

Comments

@LexManos
Copy link
Member

LexManos commented Jul 27, 2018

See 1.13, NetHandlerPlayClient.func_191980_a

    label57:
      switch(spacketrecipebook$state) {
      case REMOVE:
         Iterator iterator1 = p_191980_1_.func_192595_a().iterator();

         while(true) {
            if (!iterator1.hasNext()) {
               break label57;
            }

            ResourceLocation resourcelocation3 = (ResourceLocation)iterator1.next();
            IRecipe irecipe3 = this.field_199528_o.func_199517_a(resourcelocation3);
            if (irecipe3 != null) {
               recipebookclient.func_193831_b(irecipe3);
            }
         }
      case INIT:
         for(ResourceLocation resourcelocation1 : p_191980_1_.func_192595_a()) {
            IRecipe irecipe1 = this.field_199528_o.func_199517_a(resourcelocation1);
            if (irecipe1 != null) {
               recipebookclient.func_194073_a(irecipe1);
            }
         }

         Iterator iterator = p_191980_1_.func_193644_b().iterator();

         while(true) {
            if (!iterator.hasNext()) {
               break label57;
            }

            ResourceLocation resourcelocation2 = (ResourceLocation)iterator.next();
            IRecipe irecipe2 = this.field_199528_o.func_199517_a(resourcelocation2);
            if (irecipe2 != null) {
               recipebookclient.func_193825_e(irecipe2);
            }
         }
      case ADD:
         for(ResourceLocation resourcelocation : p_191980_1_.func_192595_a()) {
            IRecipe irecipe = this.field_199528_o.func_199517_a(resourcelocation);
            if (irecipe != null) {
               recipebookclient.func_194073_a(irecipe);
               recipebookclient.func_193825_e(irecipe);
               RecipeToast.func_193665_a(this.field_147299_f.func_193033_an(), irecipe);
            }
         }
      }
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