diff --git a/Difficult_Rocket/mod/loader/__init__.py b/Difficult_Rocket/mod/loader/__init__.py index aecce5c..6d70c5c 100644 --- a/Difficult_Rocket/mod/loader/__init__.py +++ b/Difficult_Rocket/mod/loader/__init__.py @@ -37,8 +37,9 @@ class ModManager(Options): find_mod_paths: Dict[str, Path] = {} loaded_mod_modules: Dict[str, ModInfo] = {} - def init(self, **kwargs) -> bool: + def init(self, **kwargs) -> None: self.logger = config.get_logger_from_old("mod_manager", "client") + return None def get_mod_module(self, mod_name: str) -> Optional[ModInfo]: """ diff --git a/mods/dr_game/console.py b/mods/dr_game/console.py index 954b813..e014688 100644 --- a/mods/dr_game/console.py +++ b/mods/dr_game/console.py @@ -21,7 +21,7 @@ class RustConsole(Console): self.console = Console_rs() def get_command(self) -> str: - return self.console.get_command() + return self.console.get_command() # ignore: noqa def new_command(self) -> None: self.console.new_command() diff --git a/mods/dr_game/game_layout.py b/mods/dr_game/game_layout.py index 44f5fe4..ecd366d 100644 --- a/mods/dr_game/game_layout.py +++ b/mods/dr_game/game_layout.py @@ -26,7 +26,7 @@ class GameLayout(BaseScreen): DR game 的 菜单 """ - name = "Dr_game_layout" + name = "DR_game_layout" def __init__(self, main_window: ClientWindow): super().__init__(main_window)