From fc87cc2e83d548f2ec71426c508ffe589f8d5493 Mon Sep 17 00:00:00 2001 From: Caleb Deveraux Date: Sun, 26 Sep 2010 20:42:53 -0600 Subject: [PATCH] Fix TAG_Byte_Array's setValue and dataType member functions --- nbt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nbt.py b/nbt.py index 080efd8..09021c6 100644 --- a/nbt.py +++ b/nbt.py @@ -141,8 +141,9 @@ class TAG_Byte_Array(TAG_Value): tag = 7; fmt = ">i%ds" - def setValue(self, val): - _value = numpy.array(val, uint8) + + def dataType(self, value): + return array(value, uint8) def __repr__(self): return "<%s: length %d> ( %s )" % (self.__class__, len(self.value), self.name)