mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +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();
|
extractor.run();
|
||||||
int endingPosition = getBuffer().position();
|
int endingPosition = getBuffer().position();
|
||||||
byte[] output = new byte[endingPosition - startingPosition];
|
byte[] output = new byte[endingPosition - startingPosition];
|
||||||
buffer.get(output, 0, output.length);
|
buffer.get(startingPosition, output);
|
||||||
//buffer.get(startingPosition, output);
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user