create self.aka correctly as a 2D array
This commit is contained in:
parent
0e23672390
commit
7aece200ea
@ -65,7 +65,8 @@ class MCMaterials(object):
|
|||||||
self.blockTextures = zeros((256, 16, 6, 2), dtype='uint8')
|
self.blockTextures = zeros((256, 16, 6, 2), dtype='uint8')
|
||||||
self.blockTextures[:] = self.defaultTexture
|
self.blockTextures[:] = self.defaultTexture
|
||||||
self.names = [[defaultName] * 16 for i in range(256)]
|
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.type = [["NORMAL"] * 16] * 256
|
||||||
self.blocksByType = defaultdict(list)
|
self.blocksByType = defaultdict(list)
|
||||||
self.allBlocks = []
|
self.allBlocks = []
|
||||||
|
Reference in New Issue
Block a user