Skip to content
Browse files

world: remove lit chunk check

Apparently not even chunks of that data version can be relied upon
to have that flag mean anything at all, as the --forceUpgrade and
--eraseCache switches result in a world where chunks are flagged
as not being lit but seemingly do have SkyLight and BlockLight keys.

Concerns #1570.
  • Loading branch information...
CounterPillow committed May 5, 2019
1 parent 9479ac5 commit f1c7ab93f19c9fb30d4bc14d4921da0e6b1c352a
Showing with 0 additions and 3 deletions.
  1. +0 −3 overviewer_core/
@@ -1310,9 +1310,6 @@ def get_chunk(self, x, z):
if chunk_data.get("Status", "") not in ("full", "postprocessed", "fullchunk",
"mobs_spawned", ""):
raise ChunkDoesntExist("Chunk %s,%s doesn't exist" % (x,z))
if data[1]['DataVersion'] >= 1952: # Only check this for 1.14 and above
if not chunk_data.get("isLightOn", 0):
raise ChunkDoesntExist("Chunk %s,%s isn't lit" % (x,z))

# Turn the Biomes array into a 16x16 numpy arra
if 'Biomes' in chunk_data and len(chunk_data['Biomes']) > 0:

0 comments on commit f1c7ab9

Please sign in to comment.
You can’t perform that action at this time.