Mod: return enabled as a bool instead of str

This commit is contained in:
Toast 2025-05-14 17:33:59 +02:00
parent 8349e4f340
commit 3a8406cb19

View file

@ -27,8 +27,8 @@ class Mod:
return self.__config["author"] return self.__config["author"]
@property @property
def enabled(self) -> str: def enabled(self) -> bool:
return self.__enabled return True if self.__enabled == "true" else False
def __init__(self, path: str) -> None: def __init__(self, path: str) -> None:
self.__path = path self.__path = path