fixed a goof in heightMapAt

This commit is contained in:
David Vierra 2010-12-29 03:47:38 -10:00
parent 83c75757f6
commit 964c52cc2d

View File

@ -2323,12 +2323,14 @@ class MCInfdevOldLevel(MCLevel):
def heightMapAt(self, x, z):
zc=z>>4
xc=x>>4
xInChunk = x & 0xf;
zInChunk = z & 0xf;
ch = self.getChunk(xc,zc)
heightMap = ch.HeightMap
return heightMap[zc,xc];
return heightMap[zInChunk,xInChunk];
#the heightmap is ordered differently because in minecraft it is a flat array
@property