We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0ee86 commit b6476d2Copy full SHA for b6476d2
slime-loader/src/main/java/net/roxymc/slime/serializer/SlimeSerializer.java
@@ -150,7 +150,14 @@ protected CompoundBinaryTag readCompound(ByteArrayDataInput in) throws IOExcepti
150
}
151
152
protected CompoundBinaryTag readRawCompound(int length, ByteArrayDataInput in) throws IOException {
153
- return length == 0 ? CompoundBinaryTag.empty() : BinaryTagIO.reader().read(in);
+ if (length == 0) {
154
+ return CompoundBinaryTag.empty();
155
+ }
156
+
157
+ byte[] bytes = new byte[length];
158
+ in.readFully(bytes);
159
160
+ return BinaryTagIO.reader().read(ByteStreams.newDataInput(bytes));
161
162
163
protected <T extends CompoundBinaryTagHolder> T[] readCompoundArray(
0 commit comments