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 6cd3420 commit b513143Copy full SHA for b513143
slime-loader/src/main/java/net/roxymc/slime/serializer/SlimeSerializer.java
@@ -126,6 +126,10 @@ protected CompoundBinaryTag deserializeCompound(ByteArrayDataInput in) throws IO
126
}
127
128
protected CompoundBinaryTag deserializeCompound(int length, ByteArrayDataInput in) throws IOException {
129
+ if (length == 0) {
130
+ return CompoundBinaryTag.empty();
131
+ }
132
+
133
byte[] bytes = new byte[length];
134
in.readFully(bytes);
135
0 commit comments