mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-09-28 04:17:40 +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
|
||||
public CompoundTag read(ByteBuf buffer) throws IOException {
|
||||
final short length = buffer.readShort();
|
||||
if (length <= 0) {
|
||||
if (length < 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user