Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-224976

NativeImage.setPixelRGBA throws exception with message getPixelRGBA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20 Pre-release 2
    • 21w18a, 1.18 Pre-release 1
    • None
    • Confirmed
    • Text
    • Low

      The bug

      The method com.mojang.blaze3d.platform.NativeImage.setPixelRGBA(...) (Mojang 21w18a name) creates an exception message which says getPixelRGBA:

      public void setPixelRGBA(int i, int j, int k) {
          if (this.format != Format.RGBA) {
             throw new IllegalArgumentException(String.format("getPixelRGBA only works on RGBA images; have %s", new Object[]{this.format}));
          }
          ...
      

            elvendorke [Mojang] elvendorke
            marcono1234 Marcono1234
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: