Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Apr 3, 2016
1 parent cdcf86b commit e978a38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,19 +319,19 @@ def api_chunk_overview(world: minecraft.World):
for region_path in (world.world_path / 'region').iterdir():
if region_path.suffix != '.mca':
continue
result['overworld'] += {'x': col.x, 'z': col.z} for col in anvil.Region(region_path)
result['overworld'] += ({'x': col.x, 'z': col.z} for col in anvil.Region(region_path))
if (world.world_path / 'DIM-1' / 'region').exists():
result['nether'] = []
for region_path in (world.world_path / 'DIM-1' / 'region').iterdir():
if region_path.suffix != '.mca':
continue
result['nether'] += {'x': col.x, 'z': col.z} for col in anvil.Region(region_path)
result['nether'] += ({'x': col.x, 'z': col.z} for col in anvil.Region(region_path))
if (world.world_path / 'DIM1' / 'region').exists():
result['end'] = []
for region_path in (world.world_path / 'DIM1' / 'region').iterdir():
if region_path.suffix != '.mca':
continue
result['end'] += {'x': col.x, 'z': col.z} for col in anvil.Region(region_path)
result['end'] += ({'x': col.x, 'z': col.z} for col in anvil.Region(region_path))
return result

@api.util2.json_route(application, '/world/<world>/chunks/overworld/column/<x>/<z>')
Expand Down

0 comments on commit e978a38

Please sign in to comment.