Skip to content

Commit

Permalink
一些小东西
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jun 9, 2024
1 parent aa6ab62 commit f462821
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Difficult_Rocket/mod/loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
"""
Expand Down
2 changes: 1 addition & 1 deletion mods/dr_game/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def init(self, **kwargs) -> None:
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()
2 changes: 1 addition & 1 deletion mods/dr_game/game_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f462821

Please sign in to comment.