mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:51:32 +01:00
Update Client.java
This commit is contained in:
parent
387e9ac10a
commit
89061248d7
@ -220,8 +220,10 @@ public class Client {
|
||||
if(!globalSettings.configsMigrated && new File(Minecraft.getMinecraft().mcDataDir, "SilentClient").exists() && new File(Minecraft.getMinecraft().mcDataDir, "SilentClient").isDirectory()) {
|
||||
logger.info("STARTING > migrating-configs");
|
||||
for(String file : new File(Minecraft.getMinecraft().mcDataDir, "SilentClient").list()) {
|
||||
Client.logger.info("STARTING > migrating-configs > " + file);
|
||||
FileUtils.copyFile(new File(Minecraft.getMinecraft().mcDataDir, "SilentClient/" + file), new File(Minecraft.getMinecraft().mcDataDir, "SilentClient-Configs/" + file));
|
||||
if(!new File(Minecraft.getMinecraft().mcDataDir, "SilentClient/" + file).isDirectory()) {
|
||||
Client.logger.info("STARTING > migrating-configs > " + file);
|
||||
FileUtils.copyFile(new File(Minecraft.getMinecraft().mcDataDir, "SilentClient/" + file), new File(Minecraft.getMinecraft().mcDataDir, "SilentClient-Configs/" + file));
|
||||
}
|
||||
}
|
||||
globalSettings.configsMigrated = true;
|
||||
globalSettings.save();
|
||||
|
Loading…
Reference in New Issue
Block a user