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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user