fix:update version and fix bug

This commit is contained in:
Kylin_on_Mac
2023-10-12 17:22:52 +08:00
parent 88eec69799
commit 161249cb94
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ class EasyGame(PaiaGame):
def __init__(
self,
level: int = -1,
level_file: str = None,
level_file: str = "",
sound: str = "off",
*args, **kwargs):
super().__init__(user_num=1)
@ -193,7 +193,7 @@ class EasyGame(PaiaGame):
pass
def _init_game(self):
if path.isfile(self._level_file) or self._level_file == "":
if path.isfile(self._level_file):
# set by injected file
self._init_game_by_file(self._level_file)
pass