fix(jui): disable isConstantBlended for hotbar slot rendering

Fixes the issue where in the java UI hotbar, enchant glints make the item appear as a black texture
This commit is contained in:
Sally Knight 2026-03-26 06:09:38 +03:00 committed by Tropical
parent 2131c12de7
commit a9a3cbb0f5

View file

@ -1349,7 +1349,8 @@ void Gui::renderSlot(int slot, int x, int y, float a) {
}
itemRenderer->renderAndDecorateItem(minecraft->font, minecraft->textures,
item, x, y);
item, x, y, 1.0f, 1.0f, 1.0f,
item->isFoil(), false);
if (pop > 0) {
glPopMatrix();