diff --git a/core/src/main/java/com/sk89q/jnbt/NBTInputStream.java b/core/src/main/java/com/sk89q/jnbt/NBTInputStream.java index 69c3c20c..1156a634 100644 --- a/core/src/main/java/com/sk89q/jnbt/NBTInputStream.java +++ b/core/src/main/java/com/sk89q/jnbt/NBTInputStream.java @@ -159,7 +159,7 @@ public final class NBTInputStream implements Closeable { } int left = length; for (; left > 720; left -= 720) { - dis.read(buf); + dis.readFully(buf); for (byte b : buf) { byteReader.run(i++, b & 0xFF); }