Skip to content

Commit

Permalink
fix long array fix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1504 committed Dec 13, 2017
1 parent 96d1ac8 commit 8c214e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynbt/nbt.py
Expand Up @@ -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)
Expand Down

0 comments on commit 8c214e8

Please sign in to comment.