Fixed wrong 1.7 nbt reading

This commit is contained in:
RaphiMC 2023-04-29 13:18:05 +02:00
parent ab4d1a93ca
commit 1ce8170453

View File

@ -42,7 +42,7 @@ public class NBTType extends Type<CompoundTag> {
@Override
public CompoundTag read(ByteBuf buffer) throws IOException {
final short length = buffer.readShort();
if (length <= 0) {
if (length < 0) {
return null;
}