mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-15 05:21:54 +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:
@@ -32,7 +32,9 @@ void ComplexItemDataPacket::read(DataInputStream *dis) //throws IOException
|
||||
itemType = dis->readShort();
|
||||
itemId = dis->readShort();
|
||||
|
||||
data = charArray(dis->readShort() & 0xffff);
|
||||
int dataLength = dis->readShort() & 0xffff;
|
||||
if(dataLength > 32767) dataLength = 0;
|
||||
data = charArray(dataLength);
|
||||
dis->readFully(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user