From e1d583f51d90af28fdecd2ad4c7661bca70c04a2 Mon Sep 17 00:00:00 2001 From: Caleb Deveraux Date: Mon, 27 Sep 2010 11:29:08 +0800 Subject: [PATCH] Don't coerce data type twice --- nbt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]);