mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 19:45:29 +00:00
Remove Win32 byte types from texture packets
This commit is contained in:
@@ -2235,7 +2235,7 @@ void ClientConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
|
||||
// Server side also needs to store a list of those clients waiting to get a texture the server doesn't have yet
|
||||
// so that it can send it out to them when it comes in
|
||||
|
||||
if(packet->dwBytes==0)
|
||||
if(packet->dataBytes==0)
|
||||
{
|
||||
// Request for texture
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
@@ -2256,7 +2256,7 @@ void ClientConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
wprintf(L"Client 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);
|
||||
Minecraft::GetInstance()->handleClientTextureReceived(packet->textureName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user