From 40fe19f663e6c06eb7b6cbc9919cd6c4dbc6b37d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 26 Dec 2010 14:23:09 -1000 Subject: [PATCH] fixed axis swap goof in heightmap command --- mce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mce.py b/mce.py index 1e3423a..d96a184 100755 --- a/mce.py +++ b/mce.py @@ -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: