From 02f7476f46f8994996489a3100e4edd7b9f76070 Mon Sep 17 00:00:00 2001 From: Garvita Jain <42664351+garvita-jain@users.noreply.github.com> Date: Sat, 28 Sep 2019 23:56:55 +0530 Subject: [PATCH] Update __main__.py --- flyingsnake/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flyingsnake/__main__.py b/flyingsnake/__main__.py index 07cb015..f47ded2 100644 --- a/flyingsnake/__main__.py +++ b/flyingsnake/__main__.py @@ -116,7 +116,7 @@ def flyingsnake(input_file: str, c.echo("Drawing walls...") walls = Image.new("RGBA", (world.size.x, world.size.y)) draw = ImageDraw.Draw(walls) - with click.progressbar(world.tiles, length = world.size) as bar: + with c.progressbar(world.tiles, length = world.size) as bar: for tile in bar: if tile.wall: if draw_paint and tile.wall.paint: @@ -132,7 +132,7 @@ def flyingsnake(input_file: str, c.echo("Drawing liquids...") liquids = Image.new("RGBA", (world.size.x, world.size.y)) draw = ImageDraw.Draw(liquids) - with click.progressbar(world.tiles, length = world.size) as bar: + with c.progressbar(world.tiles, length = world.size) as bar: for tile in bar: if tile.liquid: if tile.liquid.type == li.tiles.LiquidType.WATER: @@ -149,7 +149,7 @@ def flyingsnake(input_file: str, c.echo("Drawing blocks...") blocks = Image.new("RGBA", (world.size.x, world.size.y)) draw = ImageDraw.Draw(blocks) - with click.progressbar(world.tiles, length = world.size) as bar: + with c.progressbar(world.tiles, length = world.size) as bar: for tile in bar: if tile.block: if draw_paint and tile.block.paint: