FillBlocksOperation skips sections outside the selection

This commit is contained in:
David Vierra 2016-01-31 20:01:58 -10:00
parent 2458f3cae5
commit 5a132b747f

View File

@ -104,9 +104,16 @@ class FillBlocksOperation(Operation):
cx, cz = chunk.cx, chunk.cz
secPos = self.selection.sectionPositions(cx, cz)
for cy in chunk.bounds.sectionPositions(cx, cz):
if cy not in secPos:
self.skipped += 1
continue
section = chunk.getSection(cy, create=self.createSections)
if section is None:
self.skipped += 1
continue
self.sections += 1