Merge pull request #216 from NemesisMate/patch-2
Fixed BufferUnderflowException
This commit is contained in:
commit
01f673c826
@ -93,7 +93,7 @@ public class SavableSerializer extends Serializer {
|
|||||||
@Override
|
@Override
|
||||||
public int read(byte[] b, int off, int len){
|
public int read(byte[] b, int off, int len){
|
||||||
int toRead = len > input.remaining() ? input.remaining() : len;
|
int toRead = len > input.remaining() ? input.remaining() : len;
|
||||||
input.get(b, off, len);
|
input.get(b, off, toRead);
|
||||||
return toRead;
|
return toRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user