0

world: make the chunk populated code even uglier

Fixes #1568.
Fixes #1566.
This commit is contained in:
Nicolas F
2019-05-03 15:13:18 +02:00
parent c77fcc5fb3
commit 9479ac59b4

View File

@@ -1307,7 +1307,8 @@ class RegionSet(object):
# Empty is self-explanatory, and liquid_carved and carved seem to correspond
# to SkyLight not being calculated, which results in mostly-black chunks,
# so we'll just pretend they aren't there.
if chunk_data.get("Status", "") not in ("full", "postprocessed", "fullchunk"):
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):