Optimize game.saveConfigValue.

(cherry picked from commit 55f527440f1f89139df738ea7e2539dd56a67d74)
This commit is contained in:
Tipx-L 2023-08-24 08:18:28 -07:00
parent defc586b65
commit 76422bd9eb
1 changed files with 1 additions and 3 deletions

View File

@ -38445,9 +38445,7 @@
}
}
},
saveConfigValue:function(key){
game.saveConfig(key,lib.config[key]);
},
saveConfigValue:key=>game.saveConfig(key,lib.config[key]),
saveExtensionConfig:(extension,key,value)=>game.saveConfig(`extension_${extension}_${key}`,value),
saveExtensionConfigValue:(extension,key)=>game.saveExtensionConfig(extension,key,game.getExtensionConfig(extension,key)),
getExtensionConfig:(extension,key)=>lib.config[`extension_${extension}_${key}`],