ForgeFlower icon indicating copy to clipboard operation
ForgeFlower copied to clipboard

Some enchanced for loops are not enhanced.

Open LexManos opened this issue 7 years ago • 0 comments

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);
            }
         }
      }

LexManos avatar Jul 27 '18 05:07 LexManos