mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 17:20:17 +00:00
fix: add splitscreen, fix dlcs not loading, major RCE vuln fix on packet net, fix chunk loading on non-server clients, persistent saves
note: I changed how XUID works, player data might be wiped on old saves, save items on a chest or similar before trying to load old saves on new version
This commit is contained in:
1 parent
e077f9250f
commit
d017bfc30a
76 files changed
+14967
-4486
No files matched your search
@@ -123,7 +123,17 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
textureName = dis->readUTF();
|
||||
dwSkinID = (DWORD)dis->readInt();
|
||||
dwTextureBytes = (DWORD)dis->readShort();
|
||||
|
||||
short rawTextureBytes = dis->readShort();
|
||||
if(rawTextureBytes <= 0)
|
||||
{
|
||||
dwTextureBytes = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
dwTextureBytes = (DWORD)(unsigned short)rawTextureBytes;
|
||||
if(dwTextureBytes > 65536) dwTextureBytes = 0;
|
||||
}
|
||||
|
||||
if(dwTextureBytes>0)
|
||||
{
|
||||
@@ -136,7 +146,16 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException
|
||||
}
|
||||
uiAnimOverrideBitmask = dis->readInt();
|
||||
|
||||
dwBoxC = (DWORD)dis->readShort();
|
||||
short rawBoxC = dis->readShort();
|
||||
if(rawBoxC <= 0)
|
||||
{
|
||||
dwBoxC = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
dwBoxC = (DWORD)(unsigned short)rawBoxC;
|
||||
if(dwBoxC > 256) dwBoxC = 0; // sane limit for skin boxes
|
||||
}
|
||||
|
||||
if(dwBoxC>0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user