fill/replace all for finite levels

This commit is contained in:
David Vierra 2010-10-07 10:53:17 -10:00
parent fe94efd28a
commit 2215568e0e

View File

@ -459,6 +459,8 @@ class MCLevel(object):
return self.Blocks[x:x+w,z:z+l,y:y+h]
def fillBlocks(self, box, blockType, blockData = 0, blocksToReplace = None):
if box == None: box = self.getWorldBounds()
info("Filling blocks in {0} with {1}, data={2} replacing{3}".format(box, blockType, blockData, blocksToReplace) )
slices = map(slice, box.origin, box.maximum)