Fix a crash in libzontreck

This commit is contained in:
Aria 2023-02-27 17:06:07 -07:00
parent fefb02bc8d
commit 7df8d0e0b3
4 changed files with 4 additions and 3 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.4
myversion=1.0.5.5
parchment_version=2022.11.06

View file

@ -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)

View file

@ -19,6 +19,7 @@ public class DelayedExecutorService {
static{
inst=new DelayedExecutorService();
}
private DelayedExecutorService(){}
public static DelayedExecutorService getInstance()
{

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.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/