diff --git a/pynbt/nbt.py b/pynbt/nbt.py index b1fb678..c72715f 100644 --- a/pynbt/nbt.py +++ b/pynbt/nbt.py @@ -81,7 +81,7 @@ def read(cls, read, has_name=True): elif cls is TAG_Long_Array: # A simple array of (signed) 8-byte longs. length = read('i', 4)[0] - return cls(read('{0}q'.format(length), length * 4), name=name) + return cls(read('{0}q'.format(length), length * 8), name=name) elif cls is TAG_Byte: # A single (signed) byte. return cls(read('b', 1)[0], name=name)