mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-11 09:21:51 +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:
@@ -314,8 +314,10 @@ vector<shared_ptr<SynchedEntityData::DataItem> > *SynchedEntityData::unpack(Data
|
||||
vector<shared_ptr<DataItem> > *result = NULL;
|
||||
|
||||
int currentHeader = input->readByte();
|
||||
int itemCount = 0;
|
||||
const int MAX_ENTITY_DATA_ITEMS = 256;
|
||||
|
||||
while (currentHeader != EOF_MARKER)
|
||||
while (currentHeader != EOF_MARKER && itemCount < MAX_ENTITY_DATA_ITEMS)
|
||||
{
|
||||
|
||||
if (result == NULL)
|
||||
@@ -363,6 +365,7 @@ vector<shared_ptr<SynchedEntityData::DataItem> > *SynchedEntityData::unpack(Data
|
||||
break;
|
||||
}
|
||||
result->push_back(item);
|
||||
itemCount++;
|
||||
|
||||
currentHeader = input->readByte();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user