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

@ -5,5 +5,5 @@ org.gradle.daemon=false
mc_version=1.18.2
forge_version=40.2.1
myversion=1.0.5.7
myversion=1.0.5.8
parchment_version=2022.11.06

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;

View file

@ -19,7 +19,7 @@ modId="libzontreck" #mandatory
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
# ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata
# see the associated build.gradle script for how to populate this completely automatically during a build
version="1.0.5.7" #mandatory
version="1.0.5.8" #mandatory
# A display name for the mod
displayName="LibZontreck" #mandatory
# A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/