Fix TAG_String's setValue and dataType member functions

This commit is contained in:
Caleb Deveraux 2010-09-27 10:33:51 +08:00 committed by David Vierra
parent c3c44a60bf
commit 47cf34bbfd

3
nbt.py
View File

@ -169,8 +169,7 @@ class TAG_String(TAG_Value):
tag = 8;
fmt = ">h%ds"
def setValue(self, val):
_value = str(val)
dataType = str
def __init__(self, value="", name=None, data=""):
self.name=name