Closed paulhlschr closed 3 years ago
I can take a look into it next weekend but I don't think that my mod is the real cause of that crash. You may want to provide the full debug log when such crash happens again. The major problem here will be, that I won't be able to reproduce the issue. My friends and me are running a 1.16.4 server with my mod for nearly a month and nobody had issues launching Minecraft with my mod so far.
I already thought that it was probably not directly due to your mod, but this was the first and best clue, as the problem has been occurring for a while, but really irregularly. I'm attaching the full log, maybe you'll find something useful in it.
If you want to try to reproduce it, the modpack is on CurseForge.
As far as I can tell from now it seems the Dispenser behavior registration breaks somehow. I will take a look into it next weekend. Thats a really weird bug there.
The issue seems to be connected to OptiFine, as without it the error does not occur anymore, while with Optifine installed it does.
Tested with Optifine 1.16.5_HD_U_G6.
Ah, well then please open a issue on optifines end. Normally standard mods can not do anything if core mods or optine breaks stuff.
Ok, let me correct my statement from before. It is not related to Optifine. The error just occured without it too...
Waterworks IMC to other mods starting
18:13:09.663
18:13:09.663
Caught exception during event InterModEnqueueEvent dispatch for modid waterworks
java.lang.ArrayIndexOutOfBoundsException: -1
at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap.rehash(Object2ObjectOpenHashMap.java:900)
at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap.insert(Object2ObjectOpenHashMap.java:273)
at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap.put(Object2ObjectOpenHashMap.java:281)
at net.minecraft.block.DispenserBlock.func_199774_a(SourceFile:48)
at org.terpo.waterworks.compat.minecraft.MinecraftCompatibility.registerWeatherRocketDispenserBehavior(MinecraftCompatibility.java:15)
at org.terpo.waterworks.setup.InterModEnqueueSetup.init(InterModEnqueueSetup.java:15)
at org.terpo.waterworks.Waterworks$$Lambda$14144/1194269217.accept(Unknown Source)
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
at net.minecraftforge.eventbus.EventBus$$Lambda$3001/1532904892.invoke(Unknown Source)
at net.minecraftforge.eventbus.EventBus$$Lambda$2631/1701249370.invoke(Unknown Source)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120)
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121)
at net.minecraftforge.fml.ModContainer$$Lambda$3633/580441921.run(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618)
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
18:13:09.669
Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found
As I can not reproduce it in dev, I may simply add a config option to disable the dispenser integration. I think other mods like the Create deployer should do the trick too.
With the latest release I added a config option that allows to disable the compat with dispensers. I have no clue which mod in your pack might break the compatibility. My private pack with a whole lot of mods does not have any loading issues afaik
https://www.curseforge.com/minecraft/mc-mods/waterworks/files/3203677
During launch the game crashes while loading Waterworks. This error occurred multiple times already, but does not happen on every launch.