mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-15 07:33:51 +00:00
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:
parent
fd2fd65908
commit
24c74aa225
4 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue