0

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.
This commit is contained in:
Nicolas F
2019-05-05 15:17:43 +02:00
parent 9479ac59b4
commit f1c7ab93f1

View File

@@ -1310,9 +1310,6 @@ class RegionSet(object):
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: