From e771155a2bad8aab2bbf50aa431d243f97900f5a Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 27 Feb 2023 18:13:36 -0700 Subject: [PATCH] Attempt to fix the directory issue again --- gradle.properties | 2 +- src/main/java/dev/zontreck/libzontreck/LibZontreck.java | 1 + src/main/java/dev/zontreck/libzontreck/profiles/Profile.java | 2 ++ src/main/resources/META-INF/mods.toml | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 35c8cb4..a4ceede 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.8 +myversion=1.0.5.9 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 76768c3..40c5231 100644 --- a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java +++ b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java @@ -66,6 +66,7 @@ public class LibZontreck { MinecraftForge.EVENT_BUS.register(this); + MinecraftForge.EVENT_BUS.register(new ForgeEventBus()); MinecraftForge.EVENT_BUS.register(DelayedExecutorService.getInstance()); } diff --git a/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java b/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java index c6e180c..f13654c 100644 --- a/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java +++ b/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java @@ -36,8 +36,10 @@ public class Profile { { try { Files.createDirectory(BASE); + LibZontreck.LOGGER.info("Created profiles base directory"); } catch (IOException e) { e.printStackTrace(); + LibZontreck.LOGGER.error("Failed to create profiles base directory"); } } } diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 6ad71e5..88987c5 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.8" #mandatory +version="1.0.5.9" #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/