mezz / JustEnoughItems

Item and Recipe viewing mod for Minecraft
https://www.curseforge.com/minecraft/mc-mods/jei
MIT License
790 stars 304 forks source link

[Bug]: JEI is sometimes not started. #3841

Open CrimsonEdgeHope opened 3 weeks ago

CrimsonEdgeHope commented 3 weeks ago

Steps to Reproduce the Bug

  1. Join a random multiplayer server
  2. Open inventory screen

Expected Behavior

JEI is started and can see its UI in game.

Actual Behavior

Sometimes JEI's not started when joining a random multiplayer server, which means there'd be no JEI UI in inventory screen.

Mod Pack URL (Optional)

No response

Mod Pack Version (Optional)

No response

Extra Notes (Optional)

I use Fabric 1.21.1 v19.21.0.247. According to https://github.com/mezz/JustEnoughItems/blob/1.21.x/Fabric/src/main/java/mezz/jei/fabric/mixin/ClientPacketListenerMixin.java#L16, to my understanding, JEI will start upon joining a game and syncing crafting recipes. I suspect this event is sometimes not triggered, causing JEI not starting. I tried entering singleplayer then joining multiplayer, and there's JEI UI. Not sure if there's any other mod interfering.

latest.log

https://gist.github.com/CrimsonEdgeHope/f6eb046b9ce33a8a33af21158a02440a