From b3ac7b25be3c8149574c3dee1d282e7bc54dfd52 Mon Sep 17 00:00:00 2001 From: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Date: Thu, 22 Oct 2026 21:58:13 -0400 Subject: [PATCH] remove potion level bar --- Minecraft.Client/ItemRenderer.cpp | 21 --------------------- Minecraft.World/ItemInstance.cpp | 11 ----------- Minecraft.World/ItemInstance.h | 1 - 3 files changed, 33 deletions(-) diff --git a/Minecraft.Client/ItemRenderer.cpp b/Minecraft.Client/ItemRenderer.cpp index fb953ad5..4911bcee 100644 --- a/Minecraft.Client/ItemRenderer.cpp +++ b/Minecraft.Client/ItemRenderer.cpp @@ -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); } diff --git a/Minecraft.World/ItemInstance.cpp b/Minecraft.World/ItemInstance.cpp index 16c2e308..97710d73 100644 --- a/Minecraft.World/ItemInstance.cpp +++ b/Minecraft.World/ItemInstance.cpp @@ -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() { diff --git a/Minecraft.World/ItemInstance.h b/Minecraft.World/ItemInstance.h index e2b0e059..b28c2b79 100644 --- a/Minecraft.World/ItemInstance.h +++ b/Minecraft.World/ItemInstance.h @@ -156,6 +156,5 @@ public: // 4J Added void set4JData(int data); int get4JData(); - bool hasPotionStrengthBar(); int GetPotionStrength(); }; \ No newline at end of file