From 16117fa67441c340a22d3f7ed22f2eba1d1dceec Mon Sep 17 00:00:00 2001 From: Garvita Jain <42664351+garvita-jain@users.noreply.github.com> Date: Wed, 2 Oct 2019 00:00:20 +0530 Subject: [PATCH] Update __main__.py --- flyingsnake/__main__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/flyingsnake/__main__.py b/flyingsnake/__main__.py index 748be86..843007f 100644 --- a/flyingsnake/__main__.py +++ b/flyingsnake/__main__.py @@ -128,8 +128,8 @@ def flyingsnake(input_file: str, color = tuple(colors["Walls"][str(tile.wall.type.value)]) draw.point((x, y), color) bar.update(i+1) - i = i+1 - del draw + i = i+1 + del draw to_merge.append(walls) if draw_liquids: @@ -148,8 +148,8 @@ def flyingsnake(input_file: str, draw.point((x, y), tuple(colors["Globals"]["Lava"])) elif tile.liquid.type == li.tiles.LiquidType.HONEY: draw.point((x, y), tuple(colors["Globals"]["Honey"])) - bar.update(i+1) - i = i+1 + bar.update(i+1) + i = i+1 del draw to_merge.append(liquids) @@ -168,8 +168,8 @@ def flyingsnake(input_file: str, else: color = tuple(colors["Blocks"][str(tile.block.type.value)]) draw.point((x, y), color) - bar.update(i+1) - i = i+1 + bar.update(i+1) + i = i+1 del draw to_merge.append(blocks) @@ -191,8 +191,8 @@ def flyingsnake(input_file: str, draw.point((x, y), tuple(colors["Globals"]["Wire2"])) if tile.wiring.yellow: draw.point((x, y), tuple(colors["Globals"]["Wire3"])) - bar.update(i+1) - i = i+1 + bar.update(i+1) + i = i+1 del draw to_merge.append(wires)