From f30b4cddcb91203befb0825dfd11a015549d80d1 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 19 Sep 2023 00:45:40 +0800 Subject: [PATCH] looks better --- Difficult_Rocket/mod/api/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Difficult_Rocket/mod/api/__init__.py b/Difficult_Rocket/mod/api/__init__.py index 5d068a7..31604f1 100644 --- a/Difficult_Rocket/mod/api/__init__.py +++ b/Difficult_Rocket/mod/api/__init__.py @@ -61,9 +61,11 @@ class ModInfo(Options): def __init__(self, **kwargs): if not self.DR_version[0] <= DR_status.DR_version <= self.DR_version[1]: - warnings.warn(f"mod {self.mod_id} version {self.version} is not support by DR {DR_status.DR_version}\nDR {self.DR_version} is required") + warnings.warn(f"mod {self.mod_id} version {self.version} is not support by DR {DR_status.DR_version}\n" + f"DR {self.DR_version} is required") if not self.DR_Api_version[0] <= DR_status.API_version <= self.DR_Api_version[1]: - warnings.warn(f"mod {self.mod_id} version {self.version} is not support by DR {DR_status.API_version}\nDR {self.DR_Api_version} is required") + warnings.warn(f"mod {self.mod_id} version {self.version} is not support by DR {DR_status.API_version}\n" + f"DR {self.DR_Api_version} is required") super().__init__(**kwargs) def on_load(self, game: Game, old_self: Optional["ModInfo"] = None) -> bool: