From b01701e474694bac8ac982479362b25e9aea493f Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sun, 13 Dec 2020 12:26:43 +0530 Subject: [PATCH] fix for a bug where semi-fisher doesn't work when stopped and started again --- fishy/__init__.py | 2 +- fishy/engine/semifisher/engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fishy/__init__.py b/fishy/__init__.py index 8ced0cd..ec449cc 100644 --- a/fishy/__init__.py +++ b/fishy/__init__.py @@ -1,2 +1,2 @@ from fishy.__main__ import main -__version__ = "0.4.0" +__version__ = "0.4.1" diff --git a/fishy/engine/semifisher/engine.py b/fishy/engine/semifisher/engine.py index 5c9457d..412defe 100644 --- a/fishy/engine/semifisher/engine.py +++ b/fishy/engine/semifisher/engine.py @@ -24,13 +24,13 @@ class SemiFisherEngine(IEngine): def __init__(self, gui_ref: Optional['Callable[[], GUI]']): super().__init__(gui_ref) self.fishPixWindow = None - fishing_event.init() def run(self): """ Starts the fishing code explained in comments in detail """ + fishing_event.init() self.fishPixWindow = WindowClient(color=cv2.COLOR_RGB2HSV) # check for game window and stuff