This commit is contained in:
Lenheart 2025-03-16 12:54:18 +08:00
commit 8651c4f874
1 changed files with 5 additions and 0 deletions

View File

@ -1051,6 +1051,10 @@ public class 特殊控制台 extends JFrame {
JSONArray zl = jsonObject2.getJSONArray("zl");
Start.zlConfigs = zl .toJavaList(ZLConfig.class).stream().sorted(Comparator.comparing(ZLConfig::getNum)).collect(Collectors.toList());
Start.zlkg = jsonObject2.getInteger("zlkg");
JSONArray shxs1 = Start.ConfigValuesJson.getJSONArray("shxs");
Start.shxs =shxs1.toArray(new String[0]);
}catch (Exception e){
e.printStackTrace();
}
@ -1058,6 +1062,7 @@ public class 特殊控制台 extends JFrame {
public static void setTwConfig() {
Start.ConfigValuesJson.put("shxs", Start.shxs);
String string = Start.ConfigValuesJson.toString();
String property = System.getProperty("user.dir");
FileWriter fileWriter = new FileWriter(new File(property + "\\配置文件\\伤害控制.ini"));