Don't automatically remove tile entities when replacing blocks

Minecraft should be able to do that. I hope.
This commit is contained in:
David Vierra 2015-12-06 16:58:16 -10:00
parent 20bacee484
commit 396653f58a

View File

@ -142,10 +142,12 @@ class FillBlocksOperation(Operation):
mceditlib.relight.updateLightsByCoord(self.dimension, x, y, z)
def include(ref):
return ref.Position not in self.selection
chunk.TileEntities[:] = filter(include, chunk.TileEntities)
# xxx need finer control over removing tile entities - for replacing with
# blocks with the same entity ID
# def include(ref):
# return ref.Position not in self.selection
#
# chunk.TileEntities[:] = filter(include, chunk.TileEntities)
chunk.dirty = True