Skip to content

Commit

Permalink
Merge pull request #30 from Amulet-Team/patch-string-tag
Browse files Browse the repository at this point in the history
Quick fix for string load error
  • Loading branch information
gentlegiantJGC authored Jun 21, 2022
2 parents 8f02983 + 6ad6703 commit 5ed704f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions amulet_nbt/amulet_cy_nbt.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,12 @@ cdef class TAG_String(_TAG_Value):
def __str__(self):
return self.value

def __reduce__(self):
return unpickle_nbt, (self.tag_id, self.py_bytes)

def copy(self):
return self.__class__(self.py_bytes)


cdef class _TAG_List(_TAG_Value):
tag_id = _ID_LIST
Expand Down

0 comments on commit 5ed704f

Please sign in to comment.