mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 00:10:17 +00:00
fix: multiple savefile fixes
This commit is contained in:
1 parent
c1a9648bf4
commit
ff2cb7b582
13 files changed
+102
-54
No files matched your search
@@ -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