diff --git a/nbt.py b/nbt.py index 6dd7967..bd43a0f 100644 --- a/nbt.py +++ b/nbt.py @@ -49,7 +49,7 @@ class TAG_Value: def __init__(self, value=0, name=None, data=""): self.name=name if(data==""): - self.value = self.dataType(value) + self.value = value else: (self.value,) = struct.unpack(self.fmt, data[0:struct.calcsize(self.fmt)]);