fix for a bug where semi-fisher doesn't work when stopped and started again

This commit is contained in:
Adam Saudagar 2020-12-13 12:26:43 +05:30
parent fb6c27271c
commit b01701e474
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
from fishy.__main__ import main from fishy.__main__ import main
__version__ = "0.4.0" __version__ = "0.4.1"

View File

@ -24,13 +24,13 @@ class SemiFisherEngine(IEngine):
def __init__(self, gui_ref: Optional['Callable[[], GUI]']): def __init__(self, gui_ref: Optional['Callable[[], GUI]']):
super().__init__(gui_ref) super().__init__(gui_ref)
self.fishPixWindow = None self.fishPixWindow = None
fishing_event.init()
def run(self): def run(self):
""" """
Starts the fishing Starts the fishing
code explained in comments in detail code explained in comments in detail
""" """
fishing_event.init()
self.fishPixWindow = WindowClient(color=cv2.COLOR_RGB2HSV) self.fishPixWindow = WindowClient(color=cv2.COLOR_RGB2HSV)
# check for game window and stuff # check for game window and stuff