diff --git a/gradle.properties b/gradle.properties index 6b48735..99dd296 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,5 +5,5 @@ org.gradle.daemon=false mc_version=1.18.2 forge_version=40.2.1 -myversion=1.0.5.5 +myversion=1.0.5.6 parchment_version=2022.11.06 \ No newline at end of file diff --git a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java index c241f5f..1ab85ae 100644 --- a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java +++ b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java @@ -15,6 +15,7 @@ import dev.zontreck.libzontreck.memory.PlayerContainer; import dev.zontreck.libzontreck.memory.VolatilePlayerStorage; import dev.zontreck.libzontreck.profiles.Profile; import dev.zontreck.libzontreck.util.DelayedExecutorService; +import dev.zontreck.libzontreck.util.FileTreeDatastore; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraftforge.common.MinecraftForge; @@ -37,6 +38,7 @@ public class LibZontreck { public static MinecraftServer THE_SERVER; public static VolatilePlayerStorage playerStorage; public static boolean ALIVE; + public static final String FILESTORE = FileTreeDatastore.get(); static{ PROFILES = new HashMap<>(); diff --git a/src/main/java/dev/zontreck/libzontreck/util/FileTreeDatastore.java b/src/main/java/dev/zontreck/libzontreck/util/FileTreeDatastore.java index ae58224..5350388 100644 --- a/src/main/java/dev/zontreck/libzontreck/util/FileTreeDatastore.java +++ b/src/main/java/dev/zontreck/libzontreck/util/FileTreeDatastore.java @@ -25,6 +25,11 @@ public class FileTreeDatastore { } } + public static String get() + { + return BASE.toString(); + } + public static Path of(String nick) { return BASE.resolve(nick); diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index afb413d..5863e03 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -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.5" #mandatory +version="1.0.5.6" #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/