Extra Alchemy

Extra Alchemy

13M Downloads

Random server disconnects when potion rings are enabled

faeldray opened this issue ยท 3 comments

commented

Describe the bug
I'm running a server with my own modpack on it and a player who was connected and had been playing for a while randomly disconnected and couldn't connect back for more than a few seconds.

On the server, it produced the following error, which wasn't very helpful:
Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "$$1" is null

I had seen this error before when other players had randomly disconnected, but I ignored it because they had always been able to connect again without issue so it didn't seem like a big deal. This was the first time it happened consistently.

We took a look at his latest.log and it seemed like something with REI/potion rings was the issue. After turning off potion rings and restarting the server, he could connect without issue again.

To Reproduce
Steps to reproduce the behavior:

  1. Have potion rings enabled
  2. ??? - not really sure what exact behaviour triggers the disconnect
  3. Disconnects from server

Expected behavior
No disconnects

Pastebin links
Don't paste the whole lists here, use pastebin

Environment (please complete the following information):

Additional context
This is a Quilt modpack/server so there's some difference from Fabric, but the majority of Fabric mods work on Quilt.

commented

I'll look into it. I don't really see how that would cause a disconnect though. Chances are, the error is just a symptom of something else.

I'll just let you know that any fix will be released for the current version though, which at the time I'm writing this is 1.19.2. Just so that you don't hang waiting for a fix that's never coming to your used instance

commented

Ah okay. Well then hopefully the issue is something I can fix on my end. Thanks for looking into it anyways.

commented

This was a bug caused by a method that populated the creative menu for the mod. The method is no longer used in 1.19.3+ because Minecraft changed the way creative menus are populated, so the bug doesn't exist in newer versions.