diff --git a/src/mcedit2/editortools/brush/__init__.py b/src/mcedit2/editortools/brush/__init__.py index 4df7adc..bb17e10 100644 --- a/src/mcedit2/editortools/brush/__init__.py +++ b/src/mcedit2/editortools/brush/__init__.py @@ -359,8 +359,8 @@ class FakeBrushChunk(object): section = FakeBrushSection() section.Y = y if fillBlock.ID: - section.Blocks = numpy.array([0, fillBlock.ID])[mask.astype(numpy.uint8)] - section.Data = numpy.array([0, fillBlock.meta])[mask.astype(numpy.uint8)] + section.Blocks = numpy.array([0, fillBlock.ID], dtype=numpy.uint16)[mask.astype(numpy.uint8)] + section.Data = numpy.array([0, fillBlock.meta], dtype=numpy.uint8)[mask.astype(numpy.uint8)] else: section.Blocks = numpy.array([0, NULL_ID])[mask.astype(numpy.uint8)] diff --git a/src/mcedit2/rendering/modelmesh.pyx b/src/mcedit2/rendering/modelmesh.pyx index 5762638..2dc3efc 100644 --- a/src/mcedit2/rendering/modelmesh.pyx +++ b/src/mcedit2/rendering/modelmesh.pyx @@ -29,7 +29,7 @@ class BlockModelMesh(object): def createVertexArrays(self): cdef numpy.ndarray[numpy.uint16_t, ndim=3] areaBlocks - #cdef numpy.ndarray[numpy.uint8_t, ndim=3] data + cdef numpy.ndarray[numpy.uint8_t, ndim=3] data cdef numpy.ndarray[numpy.uint8_t, ndim=1] renderType cdef numpy.ndarray[numpy.uint8_t, ndim=1] opaqueCube