Kill dead code in relight_test.py
This commit is contained in:
parent
a8169378b1
commit
32c1c44465
@ -13,25 +13,17 @@ def test_relight():
|
||||
|
||||
box = bounds.expand(-100, 0, -100)
|
||||
|
||||
# box = BoundingBox((256, 0, 256), (64, pc_world.Height, 64))
|
||||
chunks = [(cx, cz) for cx, cz in anvilDim.chunkPositions() if (cx << 4, 1, cz << 4) not in box]
|
||||
for c in chunks:
|
||||
anvilDim.deleteChunk(*c)
|
||||
|
||||
#pc_world = WorldEditor(filename=temppath, create=True)
|
||||
station = TempLevel("station.schematic")
|
||||
stationDim = station.getDimension()
|
||||
anvilDim.copyBlocks(stationDim, stationDim.bounds, point, create=True)
|
||||
for cPos in anvilDim.chunkPositions():
|
||||
anvilDim.getChunk(*cPos)
|
||||
|
||||
#pc_world.copyBlocksFrom(station, station.bounds, point + (station.Width, 0, 0), create=True)
|
||||
pc_world.generateLights()
|
||||
|
||||
pc_world.saveChanges()
|
||||
cx = int(point.x + 32) >> 4
|
||||
cz = int(point.z + 32) >> 4
|
||||
# os.system(sys.executable + " ../mcedit.py " + pc_world.filename)
|
||||
|
||||
def check():
|
||||
sl = numpy.sum(pc_world.getChunk(cx, cz).SkyLight)
|
||||
|
Reference in New Issue
Block a user