looks better
This commit is contained in:
parent
50375a5fda
commit
f30b4cddcb
@ -61,9 +61,11 @@ class ModInfo(Options):
|
|||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
if not self.DR_version[0] <= DR_status.DR_version <= self.DR_version[1]:
|
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]:
|
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)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
def on_load(self, game: Game, old_self: Optional["ModInfo"] = None) -> bool:
|
def on_load(self, game: Game, old_self: Optional["ModInfo"] = None) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user