mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-25 19:40: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
@@ -10,8 +10,14 @@
|
||||
//offset - the offset in the buffer of the first byte to read.
|
||||
//length - the maximum number of bytes to read from the buffer.
|
||||
ByteArrayInputStream::ByteArrayInputStream(byteArray buf, unsigned int offset, unsigned int length)
|
||||
: pos( offset ), count( min( offset+length, buf.length ) ), mark( offset )
|
||||
: pos( offset ), mark( offset )
|
||||
{
|
||||
if( offset > buf.length )
|
||||
count = buf.length;
|
||||
else if( length > buf.length - offset )
|
||||
count = buf.length;
|
||||
else
|
||||
count = offset + length;
|
||||
this->buf = buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user