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