Undo: Fix the file not found errors

This commit is contained in:
Duy Tran Khanh 2020-12-29 16:29:25 +07:00
parent 4b068dc80f
commit 14b5d49b91

View File

@ -27,7 +27,7 @@ public class MinecraftAccount
}
public static MinecraftAccount load(String name) throws IOException, JsonSyntaxException {
MinecraftAccount acc = parse(Tools.read(Tools.DIR_ACCOUNT_NEW + "/" + name + ".json"));
MinecraftAccount acc = parse(Tools.read(name));
if (acc.accessToken == null) {
acc.accessToken = "0";
} if (acc.clientToken == null) {