[1.21.1] Crash with Create & JEI: ArrayIndexOutOfBoundsException in AnimatedSpout
Minecraft version
1.21.1
Farmer's Delight version
1.2.9
NeoForge version
21.1.213
Description
The game crashes when attempting to view recipes in JEI that involve the Create mod's Spout mechanics (or simply browsing JEI categories). The crash occurs specifically when Farmer's Delight is installed alongside Create and JEI.
The error is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 located at com.simibubi.create.compat.jei.category.animations.AnimatedSpout.draw.
It seems that a fluid recipe or container added by Farmer's Delight might be interacting incorrectly with Create's Spout animation rendering in JEI, causing it to try and access an empty fluid list. The crash does not happen on the first page of Spout recipes, only when navigating to the second page.
I have tested this on a minimal instance with only Create, JEI, and Farmer's Delight, and the crash persists. Removing Farmer's Delight resolves the issue.
Steps to reproduce
- Launch the game with the minimal mod set (Create, JEI, Farmer's Delight).
- Open the inventory to access the JEI overlay.
- Search for "Spout" (Create) and right-click it to view the "Spout Filling" recipe category.
- Observe that there are multiple pages of recipes (specifically 6 pages in my case).
- The first page renders correctly.
- Click the arrow button to navigate to the 2nd page.
- The game crashes immediately upon rendering the 2nd page.
Mod list
- create-1.21.1-6.0.8.jar
- FarmersDelight-1.21.1-1.2.9.jar
- jei-1.21.1-neoforge-19.25.1.328.jar
- flywheel-neoforge-1.21.1-1.0.5.jar
- Ponder-NeoForge-1.21.1-1.0.64.jar
Logs
crash-2025-11-23_03.58.18-client.txt
Minimal instance
- [x] I have tested this on a minimal instance
Performance and shader mods
- [ ] I am using performance or shader mods
Seems like Create's spout filling recipe changed formatting on 6.0.8, so I have to update my integration.
However, it seems that invalid recipes are causing a rendering error on the JEI widget, on their new version. I suggest also reporting this issue to Create's issues board, so they can take a look, as it's trying to render what should be an invalid recipe.
I found a existed issue on Create's issues board, this may help solve the problem. https://github.com/Creators-of-Create/Create/issues/9546
Seems like Create's spout filling recipe changed formatting on 6.0.8, so I have to update my integration.
However, it seems that invalid recipes are causing a rendering error on the JEI widget, on their new version. I suggest also reporting this issue to Create's issues board, so they can take a look, as it's trying to render what should be an invalid recipe.
Now JEI have pushed some fixes to prevent a crash. Here is the link. https://github.com/mezz/JustEnoughItems/issues/4180#issuecomment-3586357175