ForgeFlower icon indicating copy to clipboard operation
ForgeFlower copied to clipboard

For loop with nested try-with

Open LexManos opened this issue 7 years ago • 0 comments

1.13.1 TextureGlyphProviderUnicode constructor

      this.field_211257_b = p_i49737_1_;
      this.field_211258_c = p_i49737_2_;
      this.field_211259_d = p_i49737_3_;

      label322:
      for(int i = 0; i < 256; ++i) {
         char c0 = (char)(i * 256);
         ResourceLocation resourcelocation = this.func_211623_c(c0);

         try (
            IResource iresource = this.field_211257_b.func_199002_a(resourcelocation);
            NativeImage nativeimage = NativeImage.func_211679_a(NativeImage.PixelFormat.RGBA, iresource.func_199027_b());
         ) {
            if (nativeimage.func_195702_a() == 256 && nativeimage.func_195714_b() == 256) {
               int j = 0;

               while(true) {
                  if (j >= 256) {
                     continue label322;
                  }

                  byte b0 = p_i49737_2_[c0 + j];
                  if (b0 != 0 && func_212453_a(b0) > func_212454_b(b0)) {
                     p_i49737_2_[c0 + j] = 0;
                  }

                  ++j;
               }
            }
         } catch (IOException var43) {
            ;
         }

         Arrays.fill(p_i49737_2_, c0, c0 + 256, (byte)0);
      }

   }

LexManos avatar Sep 19 '18 20:09 LexManos