Mojira Archive
MC-224976

NativeImage.setPixelRGBA throws exception with message getPixelRGBA

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

Fixed

Marcono1234

[Mojang] elvendorke

2021-05-06, 02:17 AM

2023-05-16, 10:35 AM

2023-05-16, 10:35 AM

3

4

Confirmed

Low

Text

21w18a, 1.18 Pre-release 1

1.20 Pre-release 2