mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 16:10:10 +08:00
UDP client
This commit is contained in:
parent
bbc1f717a6
commit
e30c8ea3c4
@ -33,6 +33,9 @@ public class MiraiConfig {
|
|||||||
}
|
}
|
||||||
this.file = file;
|
this.file = file;
|
||||||
try {
|
try {
|
||||||
|
if(file.exists()){
|
||||||
|
file.createNewFile();
|
||||||
|
}
|
||||||
Config config = new Config();
|
Config config = new Config();
|
||||||
config.setMultiSection(true);
|
config.setMultiSection(true);
|
||||||
ini = new Ini();
|
ini = new Ini();
|
||||||
@ -78,6 +81,7 @@ public class MiraiConfig {
|
|||||||
}
|
}
|
||||||
a.saveAsSection(ini.get(k));
|
a.saveAsSection(ini.get(k));
|
||||||
});
|
});
|
||||||
|
this.clearCache();
|
||||||
try {
|
try {
|
||||||
ini.store(file);
|
ini.store(file);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user