these were incorrect; schematic.Data is unpacked

This commit is contained in:
David Vierra 2011-03-05 15:14:51 -10:00
parent 12f1282103
commit 3e8852a97c

View File

@ -1637,12 +1637,12 @@ class MCSchematic (MCLevel):
def setBlockDataAt(self, x,y,z, newdata):
if x<0 or y<0 or z<0: return 0
if x>=self.Width or y>=self.Height or z>=self.Length: return 0;
self.Data[x,z,y] |= (newdata & 0xf) << 4;
self.Data[x,z,y] = (newdata & 0xf);
def blockDataAt(self, x, y, z):
if x<0 or y<0 or z<0: return 0
if x>=self.Width or y>=self.Height or z>=self.Length: return 0;
return (self.Data[x,z,y] & 0xf0) >> 4;
return self.Data[x,z,y];
def entitiesAt(self, x, y, z):
entities = [];