From 7aece200ea00b0deb58299c7a27925b6b33e2217 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 28 Oct 2011 16:55:16 -1000 Subject: [PATCH] create self.aka correctly as a 2D array --- materials.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/materials.py b/materials.py index 75f4ede..4e29f79 100644 --- a/materials.py +++ b/materials.py @@ -65,7 +65,8 @@ class MCMaterials(object): self.blockTextures = zeros((256, 16, 6, 2), dtype='uint8') self.blockTextures[:] = self.defaultTexture self.names = [[defaultName] * 16 for i in range(256)] - self.aka = [[""] * 16] * 256 + self.aka = [[""] * 16 for i in range(256)] + self.type = [["NORMAL"] * 16] * 256 self.blocksByType = defaultdict(list) self.allBlocks = []