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

For loop with nested try-with #31

Open
LexManos opened this issue Sep 19, 2018 · 0 comments
Open

For loop with nested try-with #31

LexManos opened this issue Sep 19, 2018 · 0 comments

Comments

@LexManos
Copy link
Member

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

   }
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