remove potion level bar

This commit is contained in:
DrPerkyLegit committed 2026-10-22 21:58:13 -04:00
1 parent 22b4c44699
commit b3ac7b25be
3 files changed
-33

No files matched your search

-21
View File
@@ -720,27 +720,6 @@ void ItemRenderer::renderGuiItemDecorations(Font *font, Textures *textures, shar
glEnable(GL_DEPTH_TEST);
glColor4f(1, 1, 1, 1);
}
else if(item->hasPotionStrengthBar())
{
glDisable(GL_LIGHTING);
glDisable(GL_DEPTH_TEST);
glDisable(GL_TEXTURE_2D);
Tesselator *t = Tesselator::getInstance();
fillRect(t, x + 3, y + 13, 11, 2, 0x000000);
//fillRect(t, x + 2, y + 13, 13, 1, 0x1dabc0);
fillRect(t, x + 3, y + 13, m_iPotionStrengthBarWidth[item->GetPotionStrength()], 2, 0x00e1eb);
fillRect(t, x + 2 + 3, y + 13, 1, 2, 0x000000);
fillRect(t, x + 2 + 3+3, y + 13, 1, 2, 0x000000);
fillRect(t, x + 2 + 3+3+3, y + 13, 1, 2, 0x000000);
glEnable(GL_TEXTURE_2D);
glEnable(GL_LIGHTING);
glEnable(GL_DEPTH_TEST);
glColor4f(1, 1, 1, 1);
}
glDisable(GL_BLEND);
}