update mod api

This commit is contained in:
shenjack-mac 2023-04-26 23:12:15 +08:00
parent d0eabf1f57
commit d9670f0f3e

View File

@ -55,7 +55,7 @@ class ModInfo(Options):
config: Options = Options() # mod 配置存储
old_mod: Optional["ModInfo"] = None # 旧的mod实例
def on_load(self, game: Game):
def on_load(self, game: Game, old_self: Optional["ModInfo"] = None):
""" 加载时调用 """
print(f'Mod {self.mod_id} loaded')