Attempt to fix again profiles not resolving

This commit is contained in:
Aria 2023-02-27 17:45:43 -07:00
parent f43c5ba72b
commit ba007edb67
3 changed files with 8 additions and 5 deletions

View file

@ -29,9 +29,9 @@ public class Profile {
private File accessor;
public static final Path BASE = LibZontreck.BASE_CONFIG.resolve("profiles");
public Profile(String username, String prefix, String nickname, String name_color, String ID, String prefix_color, String chat_color, Boolean isFlying, int vaults, File vaultFile) {
public static final Path BASE;
static{
BASE = LibZontreck.BASE_CONFIG.resolve("profiles");
if(!BASE.toFile().exists())
{
try {
@ -40,6 +40,9 @@ public class Profile {
e.printStackTrace();
}
}
}
public Profile(String username, String prefix, String nickname, String name_color, String ID, String prefix_color, String chat_color, Boolean isFlying, int vaults, File vaultFile) {
this.username = username;
this.prefix = prefix;
this.nickname = nickname;