Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamscached committed Oct 21, 2022
1 parent 0b5ccd4 commit b2d9e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/config.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ init 90 python in _fom_presence_config:
"""

for _file, conf in _configs:
if conf.condition is not None:
if not conf.disable and conf.condition is not None:
try:
if not conf.disable and bool(eval(conf.condition, dict(), store.__dict__)):
if bool(eval(conf.condition, dict(), store.__dict__)):
return conf
except Exception as e:
_ERROR_CONFIG_LOADING.report(_file[len(_config_dir) + 1:], e)
Expand Down

0 comments on commit b2d9e84

Please sign in to comment.