From d3247523a3aacc4a6d519bfc196c529e3f09d50e Mon Sep 17 00:00:00 2001 From: Kylin_on_Mac Date: Thu, 19 Oct 2023 10:50:30 +0800 Subject: [PATCH] fix: level fail error --- src/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.py b/src/game.py index cad6cf0..69dbba3 100644 --- a/src/game.py +++ b/src/game.py @@ -62,7 +62,7 @@ class EasyGame(PaiaGame): with open(os.path.join(LEVEL_PATH, "001.json")) as f: game_params = json.load(f) self._level = 1 - self._level_file = None + self._level_file = "" finally: # set game params self._playground_w = int(game_params["playground_size"][0])