mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-09-29 04:27:47 +02:00
Fixed wrong 1.7 nbt reading
This commit is contained in:
parent
ab4d1a93ca
commit
1ce8170453
@ -42,7 +42,7 @@ public class NBTType extends Type<CompoundTag> {
|
|||||||
@Override
|
@Override
|
||||||
public CompoundTag read(ByteBuf buffer) throws IOException {
|
public CompoundTag read(ByteBuf buffer) throws IOException {
|
||||||
final short length = buffer.readShort();
|
final short length = buffer.readShort();
|
||||||
if (length <= 0) {
|
if (length < 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user