Added skin box hide bit functionality

Added code to hide skin boxes when wearing a helmet if bit for said functionality is present.
This commit is contained in:
Langtanium 2026-04-14 16:30:16 -07:00
parent fd2fd65908
commit 24c74aa225
4 changed files with 6 additions and 1 deletions

View file

@ -258,7 +258,9 @@ void PlayerRenderer::render(shared_ptr<Entity> _mob, double x, double y, double
{
for(ModelPart *pModelPart : *pAdditionalModelParts)
{
pModelPart->visible=true;
shared_ptr<ItemInstance> itemInstance = mob->inventory->getArmor(3);
if (itemInstance == nullptr || !pModelPart->hideWithHelmet)
pModelPart->visible=true;
}
}