diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index 494ec07e..95263af8 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -219,7 +219,10 @@ for uid in savehook_new_data: ] for k in _dfsavehook: if k not in savehook_new_data[uid]: - savehook_new_data[uid][k] = _dfsavehook[k].copy() + __v = _dfsavehook[k] + if isinstance(_dfsavehook[k], list) or isinstance(_dfsavehook[k], dict): + __v = __v.copy() + savehook_new_data[uid][k] = __v class __uid2gamepath: