My mistake

This commit is contained in:
Jesse Boyd 2016-08-28 21:08:21 +10:00
parent 727c1d2e8b
commit 57fed361f0

View File

@ -159,7 +159,7 @@ public final class NBTInputStream implements Closeable {
} }
int left = length; int left = length;
for (; left > 720; left -= 720) { for (; left > 720; left -= 720) {
dis.read(buf); dis.readFully(buf);
for (byte b : buf) { for (byte b : buf) {
byteReader.run(i++, b & 0xFF); byteReader.run(i++, b & 0xFF);
} }