mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix BinaryReader#extractBytes
This commit is contained in:
parent
3e7719b6d1
commit
c4479dabbd
@ -294,8 +294,7 @@ public class BinaryReader extends InputStream {
|
||||
extractor.run();
|
||||
int endingPosition = getBuffer().position();
|
||||
byte[] output = new byte[endingPosition - startingPosition];
|
||||
buffer.get(output, 0, output.length);
|
||||
//buffer.get(startingPosition, output);
|
||||
buffer.get(startingPosition, output);
|
||||
return output;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user