From 32c1c4446540b9b4a71fb4de4a9cb682a8cddf91 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 28 Sep 2015 20:51:44 -1000 Subject: [PATCH] Kill dead code in relight_test.py --- src/mceditlib/test/relight_test.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/mceditlib/test/relight_test.py b/src/mceditlib/test/relight_test.py index 77ea141..71c7586 100644 --- a/src/mceditlib/test/relight_test.py +++ b/src/mceditlib/test/relight_test.py @@ -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)