mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-25 14:21:55 +02:00
Fix witches' bottle color (#1205)
* fix: witches' bottle is now the right color * fix: add condition if item has mutiple layers
This commit is contained in:
@@ -1354,6 +1354,10 @@ bool LivingEntity::shouldShowName()
|
||||
|
||||
Icon *LivingEntity::getItemInHandIcon(shared_ptr<ItemInstance> item, int layer)
|
||||
{
|
||||
if (item->getItem()->hasMultipleSpriteLayers())
|
||||
{
|
||||
return item->getItem()->getLayerIcon(item->getAuxValue(), layer);
|
||||
}
|
||||
return item->getIcon();
|
||||
}
|
||||
|
||||
@@ -1999,4 +2003,4 @@ bool LivingEntity::isAlliedTo(Team *other)
|
||||
return getTeam()->isAlliedTo(other);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user