fillBlocks now removes tile entities from any blocks that were changed
if we wanted to, we could get the indexes out of mask and create them as needed, but eh
This commit is contained in:
parent
6731c3f19c
commit
19d498fd23
10
mclevel.py
10
mclevel.py
@ -3656,10 +3656,20 @@ class MCInfdevOldLevel(MCLevel):
|
||||
skipped += 1;
|
||||
needsLighting = False;
|
||||
|
||||
def include(tileEntity):
|
||||
p = TileEntity.pos(tileEntity)
|
||||
x,y,z = map(lambda a,b,c:(a-b)-c, p, point, box.origin)
|
||||
return not ((p in box) and mask[x,z,y])
|
||||
|
||||
chunk.TileEntities.value[:] = filter(include, chunk.TileEntities)
|
||||
|
||||
|
||||
|
||||
else:
|
||||
blocks[:] = blockInfo.ID
|
||||
if not shouldRetainData:
|
||||
data[:] = blockInfo.blockData
|
||||
chunk.removeTileEntitiesInBox(box)
|
||||
|
||||
chunk.chunkChanged(needsLighting);
|
||||
chunk.compress();
|
||||
|
Reference in New Issue
Block a user