mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 15:15:11 +00:00
Remove Win32 byte types from texture packets
This commit is contained in:
@@ -796,7 +796,7 @@ void PlayerConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
|
||||
{
|
||||
// Both PlayerConnection and ClientConnection should handle this mostly the same way
|
||||
|
||||
if(packet->dwBytes==0)
|
||||
if(packet->dataBytes==0)
|
||||
{
|
||||
// Request for texture
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
@@ -821,7 +821,7 @@ void PlayerConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
wprintf(L"Server received custom texture %ls\n",packet->textureName.c_str());
|
||||
#endif
|
||||
app.AddMemoryTextureFile(packet->textureName,packet->pbData,packet->dwBytes);
|
||||
app.AddMemoryTextureFile(packet->textureName,packet->pbData,packet->dataBytes);
|
||||
server->connection->handleTextureReceived(packet->textureName);
|
||||
}
|
||||
}
|
||||
@@ -1714,4 +1714,4 @@ bool PlayerConnection::isGuest()
|
||||
}
|
||||
return isGuest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user