mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-01 11:30:57 +00:00
Always send skin metadata even if no additional boxes are available
This commit is contained in:
parent
0c963335a0
commit
bb5fa50615
|
|
@ -2704,17 +2704,10 @@ void ClientConnection::handleTextureAndGeometry(shared_ptr<TextureAndGeometryPac
|
||||||
if(dwBytes!=0)
|
if(dwBytes!=0)
|
||||||
{
|
{
|
||||||
if(pDLCSkinFile)
|
if(pDLCSkinFile)
|
||||||
{
|
|
||||||
if(pDLCSkinFile->getAdditionalBoxesCount()!=0)
|
|
||||||
{
|
{
|
||||||
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwBytes, pDLCSkinFile));
|
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwBytes, pDLCSkinFile));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwBytes));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
unsigned int uiAnimOverrideBitmask= app.GetAnimOverrideBitmask(packet->dwSkinID);
|
unsigned int uiAnimOverrideBitmask= app.GetAnimOverrideBitmask(packet->dwSkinID);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -884,17 +884,10 @@ void PlayerConnection::handleTextureAndGeometry(shared_ptr<TextureAndGeometryPac
|
||||||
{
|
{
|
||||||
|
|
||||||
if(pDLCSkinFile)
|
if(pDLCSkinFile)
|
||||||
{
|
|
||||||
if(pDLCSkinFile->getAdditionalBoxesCount()!=0)
|
|
||||||
{
|
{
|
||||||
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwTextureBytes, pDLCSkinFile));
|
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwTextureBytes, pDLCSkinFile));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
send(std::make_shared<TextureAndGeometryPacket>(packet->textureName, pbData, dwTextureBytes));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// we don't have the dlc skin, so retrieve the data from the app store
|
// we don't have the dlc skin, so retrieve the data from the app store
|
||||||
vector<SKIN_BOX *> *pvSkinBoxes = app.GetAdditionalSkinBoxes(packet->dwSkinID);
|
vector<SKIN_BOX *> *pvSkinBoxes = app.GetAdditionalSkinBoxes(packet->dwSkinID);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue