fix(TU25): related to fa46d2d97ef3e1ee295652432ddcfc2394d3749e, fix rendering of glass panes in the TileRenderer and ItemInHandRenderer

This commit is contained in:
Patoke
2026-04-22 09:43:31 +10:00
committed by la
parent b3fb0e9ec0
commit 9c8ad8ac70
2 changed files with 43 additions and 0 deletions
+3
View File
@@ -243,7 +243,10 @@ void ItemInHandRenderer::renderItem(shared_ptr<LivingEntity> mob, shared_ptr<Ite
MemSect(31);
minecraft->textures->bindTexture(minecraft->textures->getTextureLocation(Icon::TYPE_TERRAIN));
MemSect(0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
tileRenderer->renderTile(Tile::tiles[item->id], item->getAuxValue(), SharedConstants::TEXTURE_LIGHTING ? 1.0f : mob->getBrightness(1)); // 4J - change brought forward from 1.8.2
glDisable(GL_BLEND);
}
else
{