diff options
| author | Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> | 2026-03-13 17:11:47 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-13 11:41:47 +0000 |
| commit | 379434097aa4c7e854c3debe44ce44fed7c24ca1 (patch) | |
| tree | a4e5d049c12ad852fdb208f49e10717549600100 /Minecraft.Client | |
| parent | d131a551bff13b76d98dc708756daa1fd975e7ca (diff) | |
Fix witches' bottle color (#1205)
* fix: witches' bottle is now the right color
* fix: add condition if item has mutiple layers
Diffstat (limited to 'Minecraft.Client')
| -rw-r--r-- | Minecraft.Client/ItemInHandRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.Client/ItemInHandRenderer.cpp b/Minecraft.Client/ItemInHandRenderer.cpp index 66c922b4..13d4fc20 100644 --- a/Minecraft.Client/ItemInHandRenderer.cpp +++ b/Minecraft.Client/ItemInHandRenderer.cpp @@ -228,7 +228,7 @@ void ItemInHandRenderer::renderItem(shared_ptr<LivingEntity> mob, shared_ptr<Ite // by texture lighting. This is for colourising things held in 3rd person view. if ( (setColor) && (item != nullptr) ) { - int col = Item::items[item->id]->getColor(item,0); + int col = Item::items[item->id]->getColor(item, layer); float red = ((col >> 16) & 0xff) / 255.0f; float g = ((col >> 8) & 0xff) / 255.0f; float b = ((col) & 0xff) / 255.0f; |
