MinecraftForge / ForgeFlower

Forge's modifications to FernFlower. Fixing various bugs/inconsistencies. Main Repo: https://github.com/MinecraftForge/FernFlower
Apache License 2.0
80 stars 44 forks source link

Enhanced For Loop Failure #62

Open LexManos opened 4 years ago

LexManos commented 4 years ago

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