mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-03 22:25:28 +00:00
fix: multiple savefile fixes
This commit is contained in:
@@ -602,9 +602,10 @@ bool SparseDataStorage::isCompressed()
|
||||
|
||||
void SparseDataStorage::write(DataOutputStream *dos)
|
||||
{
|
||||
int count = ( dataAndCount >> 48 ) & 0xffff;
|
||||
__int64 snapshot = dataAndCount;
|
||||
int count = ( snapshot >> 48 ) & 0xffff;
|
||||
dos->writeInt(count);
|
||||
unsigned char *dataPointer = (unsigned char *)(dataAndCount & 0x0000ffffffffffff);
|
||||
unsigned char *dataPointer = (unsigned char *)(snapshot & 0x0000ffffffffffff);
|
||||
byteArray wrapper(dataPointer, count * 128 + 128);
|
||||
dos->write(wrapper);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user