From 7df8d0e0b308cd74f237805008cf68a55f5b171d Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 27 Feb 2023 17:06:07 -0700 Subject: [PATCH] Fix a crash in libzontreck --- gradle.properties | 2 +- src/main/java/dev/zontreck/libzontreck/LibZontreck.java | 2 +- .../dev/zontreck/libzontreck/util/DelayedExecutorService.java | 1 + src/main/resources/META-INF/mods.toml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index f945e5c..6b48735 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.4 +myversion=1.0.5.5 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 ec22475..c241f5f 100644 --- a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java +++ b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java @@ -48,9 +48,9 @@ public class LibZontreck { // Register the setup method for modloading bus.addListener(this::setup); - bus.register(DelayedExecutorService.getInstance()); MinecraftForge.EVENT_BUS.register(this); + MinecraftForge.EVENT_BUS.register(DelayedExecutorService.getInstance()); } private void setup(final FMLCommonSetupEvent event) diff --git a/src/main/java/dev/zontreck/libzontreck/util/DelayedExecutorService.java b/src/main/java/dev/zontreck/libzontreck/util/DelayedExecutorService.java index 1977c6c..b56898f 100644 --- a/src/main/java/dev/zontreck/libzontreck/util/DelayedExecutorService.java +++ b/src/main/java/dev/zontreck/libzontreck/util/DelayedExecutorService.java @@ -19,6 +19,7 @@ public class DelayedExecutorService { static{ inst=new DelayedExecutorService(); } + private DelayedExecutorService(){} public static DelayedExecutorService getInstance() { diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 63435f5..afb413d 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.4" #mandatory +version="1.0.5.5" #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/