correct None check
This commit is contained in:
parent
d0b0277f24
commit
c1742db9e9
@ -459,7 +459,7 @@ class MCLevel(object):
|
|||||||
return self.Blocks[x:x+w,z:z+l,y:y+h]
|
return self.Blocks[x:x+w,z:z+l,y:y+h]
|
||||||
|
|
||||||
def fillBlocks(self, box, blockType, blockData = 0, blocksToReplace = None):
|
def fillBlocks(self, box, blockType, blockData = 0, blocksToReplace = None):
|
||||||
if box == None: box = self.getWorldBounds()
|
if box is None: box = self.getWorldBounds()
|
||||||
|
|
||||||
info("Filling blocks in {0} with {1}, data={2} replacing{3}".format(box, blockType, blockData, blocksToReplace) )
|
info("Filling blocks in {0} with {1}, data={2} replacing{3}".format(box, blockType, blockData, blocksToReplace) )
|
||||||
slices = map(slice, box.origin, box.maximum)
|
slices = map(slice, box.origin, box.maximum)
|
||||||
|
Reference in New Issue
Block a user