From 76422bd9eb776a8d31c9849b5d29ad0c6777c987 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Thu, 24 Aug 2023 08:18:28 -0700 Subject: [PATCH] Optimize game.saveConfigValue. (cherry picked from commit 55f527440f1f89139df738ea7e2539dd56a67d74) --- game/game.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index 9976ee479..1ede6e959 100644 --- a/game/game.js +++ b/game/game.js @@ -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}`],