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})); } ...
Created Issue:
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})); } ...
Removed Category: (Unassigned)
Added Mojang Priority: Trivial
Added Affects Versions: 1.18-pre1
Added Assignee:
[Mojang] elvendorke
Added Fixed Versions: 1.20-pre2
What's the problem with this?
It might cause misleading exception messages, but the impact of this is indeed pretty small and it is unlikely that the exception occurs in vanilla Minecraft in the first place.
Can confirm in 1.18 Pre-release 1.