mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 08:18:18 +00:00
Fix: Ignore values in state type arguments
This commit is contained in:
parent
872f55cac5
commit
45ab2ded65
@ -599,7 +599,8 @@ class ConfigUpdater:
|
||||
value = deep_get(old, keys=keys, default=data['value'])
|
||||
typ = data['type']
|
||||
display = data.get('display')
|
||||
if is_template or value is None or value == '' or typ == 'lock' or (display == 'hide' and typ != 'stored'):
|
||||
if is_template or value is None or value == '' \
|
||||
or typ in ['lock', 'state'] or (display == 'hide' and typ != 'stored'):
|
||||
value = data['value']
|
||||
value = parse_value(value, data=data)
|
||||
deep_set(new, keys=keys, value=value)
|
||||
|
Loading…
Reference in New Issue
Block a user