0

genpoi: Also fix missing nbt keys if processes > 1

oopsie
This commit is contained in:
Nicolas F
2018-11-26 14:40:52 +01:00
parent 38bc400b2f
commit e1728b9e59

View File

@@ -116,7 +116,7 @@ def parseBucketChunks((bucket, rset, filters)):
for b in bucket: for b in bucket:
try: try:
data = rset.get_chunk(b[0],b[1]) data = rset.get_chunk(b[0],b[1])
for poi in itertools.chain(data['TileEntities'], data['Entities']): for poi in itertools.chain(data.get('TileEntities', []), data.get('Entities', [])):
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign': if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
poi = signWrangler(poi) poi = signWrangler(poi)
for name, filter_function in filters: for name, filter_function in filters: