fixed axis swap goof in heightmap command

This commit is contained in:
David Vierra 2010-12-26 14:23:09 -10:00
parent a98f59b636
commit 40fe19f663

4
mce.py
View File

@ -954,9 +954,9 @@ class mce(object):
pass
c = self.level.getChunk(cx,cz)
imgarray = numpy.asarray(greyimg.crop( (cx*16, cz*16, cx*16+16, cz*16+16) ))
imgarray = numpy.asarray(greyimg.crop( (cz*16, cx*16, cz*16+16, cx*16+16) ))
imgarray = imgarray / 2; #scale to 0-127
for x in range(16):
for z in range(16):
if z+(cz*16) < width-1 and x+(cx*16) < height-1: