Sodium throws when adding a quad with a `null` sprite to a vertex consumer
Technici4n opened this issue ยท 2 comments
With Java, any object type can be a null value... it's not like we can really know looking at the decompiled sources whether it was originally annotated to not return null values. And it isn't outrageous that someone might want to use a null value either, even if it's not clear to me how exactly that is supposed to work.
The fix is trivial enough on our side... so let's just fix it.
The sprite and the sprite getter method are not null in vanilla, so mods should try to make sure this is the case with non-vanilla BakedQuad
s too. The sprite vertex data array still stores UVs, so the quad cannot have no texture. Is it possible to use the missing sprite instead of null?