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);
}
-11
View File
@@ -1020,17 +1020,6 @@ int ItemInstance::get4JData()
return dataTag->data;
}
}
// 4J Added - to show strength on potions
bool ItemInstance::hasPotionStrengthBar()
{
// exclude a bottle of water from this
if((id==Item::potion_Id) && (auxValue !=0))// && (!MACRO_POTION_IS_AKWARD(auxValue))) 4J-PB leaving the bar on an awkward potion so we can differentiate it from a water bottle
{
return true;
}
return false;
}
int ItemInstance::GetPotionStrength()
{
-1
View File
@@ -156,6 +156,5 @@ public:
// 4J Added
void set4JData(int data);
int get4JData();
bool hasPotionStrengthBar();
int GetPotionStrength();
};