From b4277c25c506043798dfa6b7bfbf885c597a0fda Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 1 Apr 2023 15:51:08 +0200 Subject: [PATCH] Fix incorrect plugin (option) values --- game/plugins/luaplugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/plugins/luaplugin.py b/game/plugins/luaplugin.py index cd61d380..865996b9 100644 --- a/game/plugins/luaplugin.py +++ b/game/plugins/luaplugin.py @@ -146,7 +146,7 @@ class LuaPlugin(PluginSettings): @property def enabled(self) -> bool: - return type(self.value) == bool and self.value + return type(self.get_value) == bool and self.get_value @classmethod def from_json(cls, name: str, path: Path) -> Optional[LuaPlugin]: @@ -172,7 +172,7 @@ class LuaPlugin(PluginSettings): if self.options: option_decls = [] for option in self.options: - value = str(option.value).lower() + value = str(option.get_value).lower() name = option.identifier option_decls.append(f" dcsRetribution.plugins.{name} = {value}")